I am receiving traffic from https://gtm-msr.appspot.com when implementing tracker using Google Tag Manager (GTM) . I believe this is a Google Tag Manager traffic, details from my storage table are given below:
page_url: https://gtm-msr.appspot.com/render2?id=GTM-XXXXXXXX
page_urlhost: gtm-msr.appspot.com
event: struct, page_view
userAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
br_name: Internet Explorer 11
On further debugging I found that GTM renders an iFrame for noscript tracking. The URL on appspot is that iFrame content.
Has anyone faced similar issue or is it just me? If yes, what is the best approach to avoid this situation?
As page_urlhost appspot.com is consistent in all the request, I have resolved the issue by using given code in GTM :
<script type="text/javascript">
if (document.location.href.search('appspot.com') == -1) {
//SnowPlow EVENT
}
</script>
Hope this will help others. If someone has better approach to the problem, do share.