I use both GA and DCM for tracking events on my webpage. I dynamically create a scripts tag to load gtag.js on my webpages based on some criteria. Now i have a situation when certain criteria matches i have to load only GA and for some other criteria i load only DCM config. But now i have a third condition where both needs to be triggered. So, in my current implementation for the third criteria where both needs to be triggered my loadscript is called twice leading to addition of gtag('js', new Date()); twice into my dataLayer. Not sure what will be the impact of this. Does this mean the second gtag('js', new Date()); overrides the first one when it sends data to GA or DCM? Is there any documentation where i can read more about what happens in this situation?Can anybody please help?
What happens when I load gtag.js twice on my web page?
314 Views Asked by kartik gavara At
0
There are 0 best solutions below
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in GOOGLE-ANALYTICS
- Loading Google Analytics after the user consents to cookie usage
- Google Analytics doesnt register events when redirected in a second page
- Remix App - Error: Minified React error #418 / #423 - on Google Analytics gtag script
- Google Analytics 4 does not show data (realtime/debugview)
- Google Analytics API - requesting all deviceId for particular UTM-marker
- Firebase analytics data not accurate
- GA Preview Says Tags are Working on Ngrok But Not on Production?
- link_url is truncating URL after 100 character in GA4
- more_than_30_sec event in GA4 strange behavior
- Rest arguments not working for gtag setup
- Retrieve visitor's Google query, pass it to the URL parameters and collect it for analytics purposes
- how do i do to configure user consent in ngx-google-analytics?
- How do I create a GA4 report showing event count when the events have unique/custom names?
- Google Analytics API error - User does not have sufficient permissions for this profile
- Events transmitted through the Measurement Protocol with the user_id are not received in GA4
Related Questions in DOUBLE-CLICK-ADVERTISING
- Double-click bid manager v2 create query with groupBys
- Google ad manager 360 - ad request discrepancy due to placing GPT tags via multiple GAMs
- How to pass creativeId into CampaignCreativeAssociations.insert() method using Google CM360 API
- Copying creatives while preserving line item associations in DFP/GAM
- How to resolve the error: "columns[11]: custom variable cannot be found" when running an SA360 API call?
- Changing an iframe ad's img src with Javascript
- API call to dfareporting.ads.insert failed with error: 12043 : Creative must be assigned to the campaign before it can be associated with the ad
- Unexpected error while getting the method or property insert on object Apiary.dfareporting.ads
- GoogleJsonResponseException: API call to dfareporting.ads.insert failed with error: Invalid value at 'profile_id' (TYPE_INT64)
- How to use double click bid manager(DBM) API in python
- How do I setup DFP GPT ad slot for multiple ad placements on same page?
- Disable DoubleClick Tag When Embedded YouTube Video Loads
- "Unexpected error" thrown when using UrlFetch
- Dollar sign + double curly braces inside string in google sheets (some kind of variable?)
- Deactivating DoubleClick via Google Analytics
Related Questions in GTAG.JS
- Remix App - Error: Minified React error #418 / #423 - on Google Analytics gtag script
- Load dataLayer Variables prior to gtag configuration in GTM
- GTM GA4 Custom HTML tag to new Google Tag - possible?
- How to perform multiple HTTP requests with unique IP addresses from my local
- (Google) Enhanced conversions aren't processed because your user email data field is incorrectly formatted
- SRI check always failing for gtag js script in browser
- How can I extract gtag( 'consent' ) values?
- Print the value fetched from javascript script in php
- How do I organize my event data to display desired metrics in one place?
- Google Tag shows up in Tag Manager and Analytics but not Google Ads
- Google Analytics event count data not accurate
- Gtag not defined when using inserted script
- Using GA4 server-side to get the client_id without an html file (server-side)
- Google Analytics with Next.Js, window.gtag is not a function
- Google tag assistant connects to domain but can't find tag
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?