Trigger Visibility | Adobe Higher Education
Skip to main content
GabrielBE2
Level 2
January 25, 2024
Beantwoord

Trigger Visibility

  • January 25, 2024
  • 1 reactie
  • 1349 Bekeken

Hello,

 

I'm looking for the visibility trigger, as it is present and complete in Google Tag Manager (GTM).

 

In particular, I've seen that Matomo has implemented it by using GTM's functionality in their open source Tag Manager:

- https://github.com/adobe/reactor-extension-googledatalayer

- https://github.com/matomo-org/tag-manager/blob/5.x-dev/Template/Trigger/ElementVisibilityTrigger.web.js

- https://github.com/adobe/reactor-extension-googledatalayer/issues/33

 

Has anyone managed to implement this in Adobe Experience Platform Data Collection (Adobe Launch)?

 

Personally, after several attempts, I haven't succeeded.

If anyone has developed a plugin or would be willing to show me how to do this, it would be greatly appreciated.

 

Would this be a real need for others?
For my migration between GTM and Adobe Launch, this is a real obstacle for me.

 

Because the core module is very light:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-data/enters-viewport-vs-gtm-visibility-trigger/m-p/623600

 

Thank you in advance for your feedback.

Best,

 

Er kunnen geen reacties meer worden geplaatst op dit onderwerp.
Beste antwoord door yuhuisg

Hmm, I see. Ok, then you're right, I don't think the Enters Viewport event will work for you. (BTW since you can read code, you might be interested in seeing the code for the Enters Viewport event: https://github.com/adobe/reactor-extension-core/blob/master/src/lib/events/entersViewport.js )

The Core extension also has a Custom Code event. So if you want to, you can add similar code to what you've found for GTM and include the trigger() function when you want the event to get triggered.

1 reactie

yuhuisg
Community Advisor
Community Advisor
January 30, 2024

The Core extension has a "Enters Viewport" event:

That might work for you.

GabrielBE2
Level 2
January 30, 2024

Hello Yuhuisg,

 

Thank you for your feedback.

 

The Core extension "Enters Viewport" event is not checking as far and as precised as the GTM one, I tried it already and fire me event that should not.

I can't reproduce the GTM precised event firing.

 

I think it's related to function, like precised into the screenshot attached.

GTM event has more verification of true visibility of elements.

yuhuisg
Community Advisor
yuhuisgCommunity AdvisorAntwoord
Community Advisor
January 31, 2024

Hmm, I see. Ok, then you're right, I don't think the Enters Viewport event will work for you. (BTW since you can read code, you might be interested in seeing the code for the Enters Viewport event: https://github.com/adobe/reactor-extension-core/blob/master/src/lib/events/entersViewport.js )

The Core extension also has a Custom Code event. So if you want to, you can add similar code to what you've found for GTM and include the trigger() function when you want the event to get triggered.