I'm playing with the Youtube Analytics API Explorer and I have no problem until I try to put several metrics in the "Metrics" field.
They ask especifically to enter data in this format
A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes.
So I try with this:
views, likes, shares
But then I get this message:
"Invalid value 'shares,+ comments+'. Values must match the following regular expression: '[0-9a-zA-Z,]+'"
What am I doing wrong? :'(
You cannot have spaces between the items. Look at their example:
likes,dislikes
So you need to do:
views,likes,shares
Related
I'm looking to use Advanced Filter Search and Replace on GA to combine all url instances of my blog page (multiple UTM parameters)
so Urls like the following:
/blogs/in-the-garden/diy-garden-bar-ideas-for-summer?mc_cid=etc.....
/blogs/in-the-garden/diy-garden-bar-ideas-for-summer?fbclid=etc.....
I want to filter as:
/blogs/in-the-garden/diy-garden-bar-ideas-for-summer
This is the plan for my filter:
Request URI
Field A: ^(/blogs/in-the-garden/diy-garden-bar-ideas-for-summer)(?).*
Request URI
Output To: $A1
Is this written correctly? I'm new to Reg Ex
You can exclude that parameter from the View settings, you don't need a filter:
However, as XTOTHEL says, the change will work from the day of saving onwards, not for historical data.
Note: fbclid is not an UTM parameter. It comes from Facebook posts link.
Real UTM parameters (utm_source, utm_medium, ...) are automatically removed from Google Analytics
Data that's captured in GA already WON'T BE AFFECTED by the filters. They're not retroactive.
If you want to remove fbclid then use the query string parameter exclusion feature: https://support.google.com/analytics/answer/1010249?hl=en
I have tried with regular expression also with css/j query extractor,not able to run my script properly.
My exact test scenario is kind of
There is kind of application form.
First Load the page.
Fill with some data, then go to next page.
Now again fill some details, and Submit.
Note:For Each and every 'application form' there is two "9" digit unique number , which gets generated from server side, and after participating the form there is two options:
a)Access Count
b)Response Count
Every time J meter thread group hits the page 'Access count' properly gets increased , but Response Count not gets change, it should get increase for each user as well.
I have tries to correlate both the parameter using regular expression and css/j query expression , but still the 'Response Count' not gets increment. What should I do for this case to do Load test in J meter.
Viewstate regular expression
Change parameter
Regular Expression: input[id=_VIEWSTATE]
While Checking the response data in
result tree its showing different in Load page and next Page.
Add Regular Expression Extractor as a child of the first request.
Configure it as follows:
Reference Name: VIEWSTATE
Regular Expression: <input type="hidden" name="javax\.faces\.ViewState" id="javax\.faces\.ViewState" value="([^"]+)".*/>
Template: $1$
Refer extracted value as ${VIEWSTATE} where required.
By the way, you can test your Regular Expressions right in View Results Tree listener using RegExp Tester view.
The regular expression is wrong.
input[id=_VIEWSTATE] can' t capture a value.
You can test it in regular expression tester of response.
It may be something like: input[id=(.*?)]
It depends on your dynamic value. But in question you didnt mention screenshot of that dyanamic data.
I am trying to write a regexp to use with Crazyegg that will allow me to only gather data from my product pages.
My site structure is:
category page: www.sitename.com/categoryname/sub-categoryname
product page: www.sitename.com/productname/
My regex so far is:
^https?://([A-Za-z0-9.-]*\.)?sitename\.com/[A-Za-z0-9.-]*(/|/\?|)$
This allows everything that isnt at the sub category level (2nd level folder?)
the issue is that this allow top level categories so I need to exclude these by their name for example:
^https?://([A-Za-z0-9.-]*\.)?sitename\.com/(?!\babout\b|\bcheckout\b)(/|/\?|)$
Could you please help me get the exclusion correct? ive also tried doing using [^\babout\b|\bcheckout\b]
if you only want product pages, the regex for capture product pages is:
".*productname"
For capture category pages: ".*categoryname/sub-categoryname"
I hope help you. If you have more questions, ask me!
For example I have this URL like
http://www.example.com/search?text=soda&show=Page&layoutStatus=grid&categoryCode=&q=soda%3Arelevance&terms=%3ACalories%3A0+Cal
I need to fetch the values:
%3ACalories%3A0+Cal
I just Create a regex repression like: href="/product(.+?).uts\?swatchName=(.+?)"
where (.+?) is appearing 2 times for a 2 variables. and pass parameter like ${value_g1} and ${value_g2} in the url. resolved issue.
I want to create a goal funnel on Google by using regualar expressions:
for example lets say the website is www.example.com
and the funnel journey should be
1. Category Page i.e. /brands/nike
2. Product Page i.e. /brands/nike/nike-air-trainers
3. Checkout i.e /checkout/onepage/success/
How can u write in this regular expression, the reason Im asking this is how will google differentiate between the category page and a product page?
1. Category Page i.e. /brands/nike - regex: /brands/[^/]+
2. Product Page i.e. /brands/nike/nike-air-trainers - regex: /brands/[^/]+/(.+)
3. Checkout i.e. /checkout/onepage/success/ - regex: /success/ or /checkout/[^/]*/success/