Google Analytics Content Experiments, how to setup variation for multiple pages - google-analytics

I would like to do a Test A/B, and I found I could do a test with Google Analytics Content Experiment, which looks interesting.
However all the documentation I have read the test is for static pages, for example:
www.mysite.com/products/tv.html
www.mysite.com/products/fan.html
I recently read here I could use relative url for the variation page, adding a parameter, for example:
www.mysite.com/products/tv.html?ab=1
www.mysite.com/products/fan.html?ab=1
The thing is I have a lot of products on my site and I would like to apply the test to all my products BUT I use a rewriting module to my product pages, because it could have categories and more, so I have clean Urls, for exmaple:
www.mysite.com/products/informatic/computer/12
www.mysite.com/products/informatic/computer/17
www.mysite.com/products/cleaning/85
www.mysite.com/products/cleaning/156
www.mysite.com/products/informatic/software/accounting/82
www.mysite.com/products/informatic/software/accounting/99
As you can see I have different rewriting rules, different levels depending on the category of the product (this is just an example), but my product page is just one for all the products:
www.mysite.com/products/product.aspx?productid=$1
I wonder how could I do a test having clean urls.
Thanks in advance!!!

Related

Sub-Directories Tracking In Google Analytics

I would like to created a master view in Google Analytics that treats sub-directories page visits as one, not as two separate entries in the reports.
so instead of:
/us/brands
/gb/brands
Just shows total visits for /brands?
What is the best approach for this?
Thanks
The easiest way would be probably to have an advanced filter that swaps the elements of your page path around - i.e. you turn /us/brands/ into "/brands/us". Then you can use a second filter to include only the "/brand" subdirectory into your view, and you get aggregated numbers.
A (perhaps better) alternative would be to create a content grouping that includes your brand pages and then look at the pageviews/visit for that content grouping.

Inherit URL path on Google Analytics Experiments

I want to run an A/B test using Google Analytics Content Experiments to test different pages.
I would like to know if there is a way to define variations inheriting parts of the URL path. I read the documentation but seems that Analytics only inherits URL dynamic parameters.
My URLs look like:
https://example.com/page1/{USER-DATA-123}
where {USER-DATA-123} contains some data related to current user and it's different for every visitor.
And I want to create this experiment:
Original page: https://example.com/page1/{USER-DATA-123}
Variation page 1: https://example.com/page2/{USER-DATA-123}
I was investigaing the same issue, just had to test two desings of this page https://labiteam.com/services/landing-page. There are two variants:
Turn your static urls with id sessions into dynamic. According to this manual https://support.google.com/analytics/answer/2664470?hl=en it should work
You can customize testing script manually, though I doubt it's a practical decision
Upd: Also, one more suggestion. Forget about A/B experiments, just make your URLs appear randomly (coding it manually) and set goals to each url.

How do I setup GA Content Experiment variations without URI attributes, but with segmented URI's?

I'm experimenting with GA's Content Experiments.
I want to track performance of differences on a product detail page for all products on a given website.
I use ExpressionEngine (written on CodeIgniter) to serve the pages. The URI's are in this format:
domain.com/product/{product_id}/{product_short_name}
The variations are:
domain.com/product-b/{product_id}/{product_short_name}
domain.com/product-c/{product_id}/{product_short_name}
where {product_id} and {product_short_name} are dynamic.
How do I setup the Experiment to test all products? Now, I can only to hard-code the entire URI (with product ID and short name), so the test is only ran for that one product.
To elaborate: GA seems to be forcing me to use URI's with parameters (domain.com/product?id={product_id}&short_name={product_short_name}) where it will recognise the attributes and add them to the variations URI's. This isn't possible when the parameters are in the form of segments.

Analytics Experiments Dynamic URLs

I have a lot of product pages like this:
www.example.com/catalog001/item123
www.example.com/catalog002/item321
www.example.com/catalog002/item567
Every catalog and product(item) have its own numeric id.
Product pages are similar. Just different product image, price, title.
I tried to use Regular Expressions to set up original url pattern in Analytics Experiments:
www.example.com/catalog(\d+)?/item(\d+)?
Is there any way to set up original url pattern?
I'm not quite sure what you're asking. It sounds like you want to test many different product pages without setting up many different experiments, presumably to test two different product page layouts.
If so you can use relative urls in the experiments interface for that, there is no need for regular expressions. Create an experiment for one product page, select relative urls for the variations, enter a query string (?foo=bar) or fragment identifier (#foo=bar) that triggers the variation page, add experiment code to all the originals and the test will be enabled for all your product pages, not just the one url you entered in the interface.
If you were after something else I suggest you re-word the question to explain the actual problem rather than your attempt to solve it.

Google analytics and dynamic pages

I have a (Symfony based) website. I would LIKE to analyize the site traffic using Google Analytics. My site is divided into several (i.e. N) categories, each of which may have 0 to M sub categories.
Schematically, the taxonomy of the site breaks down into something like this:
N major categories
Each major category may have 0 to M sub categories
further nesting is possible, but I have just kept it simple for the purpose of illustration.
I need to know which sections of the website are genererating more traffic, so that I can concentrate my efforts on those sections. My question is:
Is there anyway to identify the data that is being generated from the different sections of my site?.
Put another way, is there a code or 'tag' that I can generate dynamically (in each page that is being monitored) and pass to GA, so that I can identify which section of the website the traffic came from?
The documentation I found on google about this topic was not very useful (atleast it did not answer this question).
You can pass a uri to _trackPageview that would permit you to log the request in whatever format you'd like, including however your user's requesting the page.
Remove/replace the original call to pageTracker._trackPageview with the following:
pageTracker._trackPageview('/topcategory/subcategory');
You'd just need to plug in the topcategory and subcategory info. If the info is available in the URL you could parse it out using js on the fly.

Resources