Google Analytics Goal Tracking on different domains

2 replies
Hi all,

I hope this is the right category to ask this question. I need to configure Google analytics goal conversion tracking. I'm selling an ebook on my website which is delivered by a third party file-delivery service (getdpd.com). I have installed analytics code in both my website landing page and also on the delivery page of getdpd.com.

The code on my website has the following part in it:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxxx-15']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setDomainName', '.mywebsite.com']);
_gaq.push(['_trackPageview']);



The code on the file-delivery page has the following part in it:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxxx-15']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_trackPageview']);



However the tracking does not work. Anyone has any idea if I'm missing something?

Thanks
#analytics #domains #goal #google #tracking
  • Profile picture of the author softwarewarden
    Originally Posted by HarrisAndrea View Post

    Hi all,

    I hope this is the right category to ask this question. I need to configure Google analytics goal conversion tracking. I'm selling an ebook on my website which is delivered by a third party file-delivery service (getdpd.com). I have installed analytics code in both my website landing page and also on the delivery page of getdpd.com.

    The code on my website has the following part in it:

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-xxxxxxxxx-15']);
    _gaq.push(['_setAllowLinker', true]);
    _gaq.push(['_setDomainName', '.mywebsite.com']);
    _gaq.push(['_trackPageview']);



    The code on the file-delivery page has the following part in it:

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-xxxxxxxxx-15']);
    _gaq.push(['_setAllowLinker', true]);
    _gaq.push(['_setDomainName', 'none']);
    _gaq.push(['_trackPageview']);



    However the tracking does not work. Anyone has any idea if I'm missing something?

    Thanks
    you try on the download links onclick handler try adding
    javascript:_gaq.push(['_trackPageview', 'Ebook_Downloaded']); or
    javascript:_gaq.push(['_trackPageview', 'ebookdownloadurl']);
    {{ DiscussionBoard.errors[8813477].message }}

Trending Topics