Created
February 28, 2022 20:41
-
-
Save WouterNieuwerth/8c8c2a601951e693a1813918e88deb8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Send data to GA4 | |
const getAllEventData = require('getAllEventData'); | |
const sendEventToGoogleAnalytics = require('sendEventToGoogleAnalytics'); | |
const events = getAllEventData(); | |
sendEventToGoogleAnalytics(events, (response) => { | |
data.gtmOnFailure(); | |
}); | |
// Call data.gtmOnSuccess when the tag is finished. | |
data.gtmOnSuccess(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment