Mahmoud_Hayani | 2022-03-29 11:22:52 UTC | #1
Hi, For some reason I was advised by customer care to ask the question here: I got the following from our web team (regarding Predictive engagement - ref https://all.docs.genesys.com/ATC/Current/Event/Google_Tag_Manager)
We are running into some problems when we are trying to publish the script. It seems like DOM ready cannot be used as a trigger when the tag is also waiting for consent. DOM-ready event has already been fired when the consent is given. Because of this, we have to find another trigger that works. Do you know what trigger we can replace the DOM-ready trigger with or workaround for this?
Regards
Angelo_Cicchitto | 2022-03-31 10:54:45 UTC | #2
Hi. The Messenger deployment with GTM is documented here.
I see Google Tag Manager has a specific Consent Initialization trigger event that might help here: https://support.google.com/tagmanager/answer/10718549?hl=en
Alternatively, you can consider the following via GTM (which is probably similar to the previous Consent Initialization approach):
- Create a new Variable object in GTM: this can be used to trigger custom event. For example, you can create a variable of 1st Party Cookie type. Your consent manager can update this local Cookie, that GTM monitors.
- Create a new custom Trigger, for example based on Page View in combination with the previous variable being populated by your consent manager.
- You can now use this custom trigger to load Genesys snippet.
Mahmoud_Hayani | 2022-03-31 10:55:17 UTC | #3
Thanks a lot for your help
system | 2022-04-30 10:55:54 UTC | #4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 14069