Analytics
2.3K members online now
2.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Invalid or missing web property ID {{gtm.js error

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I have Google tag manager implemented on a site firing a UA code. Using the Google Tag Assistant browser plugin for Chrome I am seeing an error {{gtm.js Invalid or missing web property ID.

 

The tag is in the head section(running on a SAAS product) but I know this is not the issue, I have GTM implemented in the exact same fashion on other sites running on the same platform and do not receive this error. Any ideas? The site can be viewed at http://npsf.site-ym.com/

 

 I tried to add images but the forum editor continously removed them saying the HTML was invalid so I put them in dropbox

https://www.dropbox.com/s/k68to24e11zxy42/Capture2.PNG?dl=0

https://www.dropbox.com/s/dlesvf3l7jxdbol/Capture.PNG?dl=0

 

Thanks,

1 Expert replyverified_user

Re: Invalid or missing web property ID {{gtm.js error

Top Contributor
# 2
Top Contributor

What is the tracking id/UA# for the GA tag being implemented in GTM?
Have you added the tracking code snippet to GTM via a html tag
or are you using a Universal analytics tag?

 

If its a Universal Analytics Tag type, are you adding the UA# directly into
the tracking code field or are you using a variable to insert it?

 

What happens when you preview the GTM container and the tags/variables etc.. any errors?

 

Also just looking at the tracking code snippet already on the website too.. I'm still learning js and wondering the
reason for having the following bit of code in the very beginning of the tracking code snippet as to the best of my knowledge it relates to
ga.js not analytics.js
var _gaq = _gaq || [];

<script type='text/javascript'>
			var _gaq = _gaq || [];(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-21511177-1', 'auto');
ga('send', 'pageview');
ga('create', 'UA-2449742-47', 'auto', 'YMtracker');
ga('YMtracker.send', 'pageview');
</script>

 

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here