As Date/time AB split tests are very valuable to us, we'd like to go a step further, and track the result of each split in Google Analytics (we do a 50 50 split, one send in the morning and one evening send)
I've managed to make each name of the utm_campaign unique by using this AMPScript adding the hour of the send for each send to the campaign_name:
<script runat="server" language="ampscript">
%%[
var @utm
var @splitversion
set @splitversion = DatePart(Now(), "H")
set @utm = CONCAT("http://dk.bonaparteshop.com?utm_campaign=171-25-TH-",@dyncountry,"-TEST-", @splitversion)
]%%
</script>
Adding the @utm to a link using:
<a href="%%=redirectto(@utm)=%%">CLICK</a>
and then clicking it, adds takes me to my site with this URL:
https://dk.bonaparteshop.com/?utm_campaign=171-25-TH-DK-TEST-5&utm_source=ExactTarget&utm_medium=email&utm_content=%%%3dredirectto(%40utm)%3d%%&utm_campaign=171-25-TH-TEST-AB-split
So far so good! But what I then had to realize was that utm_source, utm_medium, utm_content and utm_campaign attributes are system set to the URL of all my links. This means that the utm_campaign attribute is set twice and as Google Analytics only stores the last version of a duplicate utm_campaign all of the work above have been kind of effortless.
So: Any idea on how I could use the experiences described above to make my split test appear as two and not one campaign in Google Analytics?
Thank you