I am setting up cross domain tracking and i've discovered an issue where I am losing tracking between two domains when the destination domain has a redirect before the page (cart) with the universal code on it. The redirect ends up stripping the _ga token off the url so everything looks like a new visitor to the destination domain. Is there any way to prevent this from happening?
--
You received this message because you are subscribed to the Google Groups "google-analytics-analyticsjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-ana...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--Eduardo Cereto
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-analyticsjs+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-ana...@googlegroups.com.
ThanksHi BradAs suggested by Edurado, If you can get the _ga token to be forwarded from the link to the redirected url, It would work.
Samrat D'souza
On Wed, Feb 12, 2014 at 6:22 PM, Brad Stewart <br...@eiffelcrown.com> wrote:
That's what I figured, thanks Eduardo!
On Tuesday, February 11, 2014 9:14:02 PM UTC-7, Eduardo Cereto Carvalho wrote:
That's unfortunately a known issue and not something technically possible to solve in the product, you'll have to either get rid of redirect by linking directly to the destination page or make sure that the redirect keeps the parameter in the urls.
--Eduardo Cereto
On Tue, Feb 11, 2014 at 9:07 PM, Brad Stewart <br...@eiffelcrown.com> wrote:
I am setting up cross domain tracking and i've discovered an issue where I am losing tracking between two domains when the destination domain has a redirect before the page (cart) with the universal code on it. The redirect ends up stripping the _ga token off the url so everything looks like a new visitor to the destination domain. Is there any way to prevent this from happening?
--
You received this message because you are subscribed to the Google Groups "google-analytics-analyticsjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-analyticsjs+unsubs...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
engine.This is the code on the main site:<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-xxxxx-1', {'cookieDomain': 'mainsite.com','allowLinker': true});// Load the linker plugin.ga('require', 'linker');// Define which domains to autoLink.ga('send', 'pageview');</script>And this is the code on the booking engine:
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create','UA-xxxx-1','auto',{
'allowLinker':true});ga('send', 'pageview');
Anyone see any issues? Kind of stumped.
On Thursday, February 13, 2014 3:37:37 AM UTC-7, Samrat D'Souza wrote:
ThanksHi BradAs suggested by Edurado, If you can get the _ga token to be forwarded from the link to the redirected url, It would work.
Samrat D'souza
On Wed, Feb 12, 2014 at 6:22 PM, Brad Stewart <br...@eiffelcrown.com> wrote:
That's what I figured, thanks Eduardo!
On Tuesday, February 11, 2014 9:14:02 PM UTC-7, Eduardo Cereto Carvalho wrote:
That's unfortunately a known issue and not something technically possible to solve in the product, you'll have to either get rid of redirect by linking directly to the destination page or make sure that the redirect keeps the parameter in the urls.
--Eduardo Cereto
On Tue, Feb 11, 2014 at 9:07 PM, Brad Stewart <br...@eiffelcrown.com> wrote:
I am setting up cross domain tracking and i've discovered an issue where I am losing tracking between two domains when the destination domain has a redirect before the page (cart) with the universal code on it. The redirect ends up stripping the _ga token off the url so everything looks like a new visitor to the destination domain. Is there any way to prevent this from happening?
--
You received this message because you are subscribed to the Google Groups "google-analytics-analyticsjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-analyticsjs+unsubs...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "google-analytics-analyticsjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-analyticsjs+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.