AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

2.7K members online now
2.7K 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

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

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



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


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



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),
								})(window,document,'script','//','ga');ga('create', 'UA-21511177-1', 'auto');
ga('send', 'pageview');
ga('create', 'UA-2449742-47', 'auto', 'YMtracker');
ga('YMtracker.send', 'pageview');


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