Google Experiments: testing variants on dual-language page - google-analytics

I need to set up A/B testing for my homepage using Google Experiments. Thing is, my page serves 2 languages - English and German.
The path to homepage itself is simply / for EN, and /de for DE.
Then, I have the following variations of the homepage prepared:
/experiment-A and /de/experiment-A
/experiment-B and /de/experiment-B
The goal for the experiment is user's registration. I don't care which language the user has set. The question is: Do I need to set up 2 separate experiments for the two language versions?

Yeah, I'd set up two experiments. The plus side is you'll also be able to get some insights from it. I find Germans behave quite differently than our North American visitors.

Related

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.

Google Analytics - Two Experiment at Single Page

I'm implementing google analytics experiment in my website. There are certain queries and doubts I have. Please have a look:
Can we implement two experiment with a same page at a time ? Because to doing this, I'll have to put two experiment code in my original script and its giving me some warnings.
My case is I want to implement A/B Test Variation on two button (iOS App Download and Android App Download) at my website landing page. For this, I've create two goals for each button (Goals are linked with events that I've placed with both button clicked events).
Now for experiment, I've created experiment and selected goal and placed the experiment code at appropriate place.
What about 2nd experiment for other goal ? and how should I create it ?
I hope you clear my concern.
Below is one warning I'm getting while creating one experiment:
Note: Two experiment variations do not appear in the table. More information
The following 2 experiment variations have had no sessions.
I've checked url and everything, but not getting any clue.
Please suggest.
Thanks.
I don't fully understand the warning and the structure of your experiments, but in general you shouldn't create 2 experiments for the same page through the "normal" experiments panel.
For this kind of situations, it is much better to use the Google Content Experiments API (Client-side or Server-side). It is a little more difficult to configure, but allows for several tests in the same page, among other advantages.
If you don't want to do this "complex" configuration, you could use some paid solution like Optimizely or VWO (they include multivariate tests, which could be better for your use case than A/B tests).

Simple & Legitimate way to Cloak a URL?

I am not a professional with websites - just an amateur DIY dabbler, so apologies in advance if this is rather simplistic.
I have three Wordpress sites. For simplicity, let's say they are widgets.com, blue-widgets.com and red-widgets.com.
With Google AdWords, this works well as I send all searches for 'red widgets' to red-widgets.com, searches for 'blue widgets' to blue-widgets.com and everything else to the generic widgets.com.
I am now targeting the Chinese market using the AdWords equivalent from the main search engine in China, which is Baidu.com.
Whereas with AdWords, it's pay-as-you-go and it doesn't matter which site you send the traffic to, Baidu is hard work. For companies outside China they need around $3600 pre-payment. For that, you are only able to promote one website. If I wanted to promote all three, I would have to set up three accounts and send them $10,800 (which is more credit than I am likely to spend with them in several years!)
So I have set up an account just for widgets.com Javascript redirects are specifically disallowed.
What I would like to do is to set up third level domains for red.widgets.com and blue.widgets.com and have them display the home pages for red-widgets.com and blue-widgets.com respectively.
Is there a simple way that I could achieve this and how?
I wonder if you can use many URLs, such as the following:
widgets.com
widgets.com?red_widget=1
widgets.com?blue_widget=1
If you can use such URL, you should be able to redirect the URL through a specific PHP code. Here is an example of a code that will redirection the initial URL to a new one:
if (isset($_GET['red_widget']) && $_GET['red_widget']=='1') {
header('Location: http://red-widget.example.com/');
exit;
}
Hope this helps.

In Google Analytics, how do I ignore a specific subdomain as a referral? The proper use of _addIgnoredRef

I need help understanding and also instructions on how to properly use "_addIgnoredRef".
First I will explain what type of situation I am in. We have 2 subdomains (each subdomain has it's own webserver/application) that is being used as one website, meaning there are links going back and forth between these two subdomains. For the sake of just using an example, let's say we have "abc.website.com" and "123.website.com". We have links on abc.website.com that links to 123.website.com and vice versa, however they are treated as one website.
Second, we do not develop or change any google anyalytics code to the domain website.com. We only have access to the subdomains, abc.website.com and 123.website.com.
So the issue we are seeing is that Google Analytics is telling us that we have referrals coming from these two subdomains. I understand that it's because we have these two subdomains linking back and forth.
I do understand GA has a command that allows me to IGNORE the referrals by using _addIgnoredRef . However, am I safe to assume that I go to abc.website.com and append this to the GA code,
_gaq.push(['_addIgnoredRef', '123.website.com']);
and vice versa for 123.website.com?
Ultimately we want to not see referrals coming from 123.website.com and abc.website.com, but we don't mind seeing referrals coming from website.com or www.website.com.
If what I have assume is correct, then I must be missing something because that is what I have setup currently. Then my next question would be, do I have this correct?
_gaq.push(['_setDomainName', 'website.com']);
Do I need the trailing period?
You can go on and on about how that having two subdomains as one website isn't a good idea for many reasons but this is what was provided to us when we first started. We will eventually merge them into one website, but for now let's just say it will take awhile and we need to "bandage the situation".
First off, adding _addIgnoreRef will only convert the referral into direct traffic. If this is desired, then yes, you would add:
_gaq.push(['_addIgnoredRef', '123.website.com']); //add to abc.website.com
and
_gaq.push(['_addIgnoredRef', 'abc.website.com']); //add to 123.website.com
The trailing period isn't necessary, just as long as you are consistent across the entire website. According to Google, the trailing period comes more into play when you have multiple layers of subdomains - https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory?csw=1#_gat.GA_Tracker_._setDomainName

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