anish gandhi
anish gandhi

Reputation: 31

UTM tags are disappeared after hitting my website url

I have google analytics account, i have added analytics code in my index.html. But Mycampaign tag in google analytics is not showing any data. I have user google URL builder to generate campaign url. What could be the problem?

1. UTM tags disappeared on landing page of website
2. analytics code may have some changes

here is the analytic code added in index.html, i am using UA(Universal analytics)

<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', 'https://www.google-analytics.com/analytics.js', 'ga');
    ga('create', 'UA-xxxxxxx-x', 'auto');
    ga('send', 'pageview');
</script>

Upvotes: 0

Views: 2569

Answers (3)

Kemen Paulos Plaza
Kemen Paulos Plaza

Reputation: 1570

If you're executing this on localmachine or in a Web with no domain this can be a problem, the Google Analytics Universal das dependencies with the domain (sometimes this no happens but well), so you can try to change the

ga('create','UA-1-1','auto'); 

for

ga('create', 'UA-XXXX-Y', {
'cookieDomain': 'none'
});

or look for other options on this thread: Can you test google analytics on a localhost address?

Warn us if this help your issue

Upvotes: 1

Tammy Camp
Tammy Camp

Reputation: 1

If you could provide an example page that has this issue, it would be helpful. Then we can look closely at your UTM parameters and also you GA javascript.

Upvotes: 0

RDLO
RDLO

Reputation: 1

Might help if you posted the tagged URL. I know you used the URL builder but it still could be incorrect. Also, if you're looking at a filtered view in Analytics you won't see all traffic. Check that the tag is firing using Google Tag Assistant.

Upvotes: 0

Related Questions