Hello There,
I am trying to set the platform: lg in my web GTM, and this change I can see in the collector log but when I am trying to see in the shredded log, platform is coming as web. so can I override the paltform value according to my business need.
<script type="text/javascript">
;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","sp.js","snowplow"));
console.log("Platform: "+'{{platform}}');
window.snowplow('newTracker', 'cf', 'collector.endpoint.com', {
appId: 'APP_ID',
cookieDomain: 'endpoint.com',
platform: '{{platform}}'// gtm variable {{platform}}=lg or sm or xs
});
window.snowplow('trackPageView');
var adId = '{{ad-id}}';
if(adId != "undefined") {
window.snowplow('trackStructEvent', 'PageView', 'Ad Details', 'Ad Id', '{{ad-id}}', '0.0');
}
</script>
so this is my GTM
tag I am overriding the platform
but still in DB platform is coming as web
.
so can you suggest me how I can override the platform