18 Replies Latest reply on Mar 16, 2018 8:35 AM by Aaronius9er9er9er

    Best practices for Single-Page Apps

    worldholder Level 1

      What are the best practices for Single-Page Apps tracking using Launch? Basically, I'm looking for a robust techique for collecting / dispatching virtual pageviews (JS framework agnostic).

       

      Here https://marketing.adobe.com/resources/help/en_US/experience-cloud/launch/c_extension-dtm.h tml I found that Launch Core extension contains events like “Custom Event” and “Data Element Changed”.  I suppose I should use one of these features, but not sure which one to select as I don’t know their pros and cons. 

       

      On the web I found some examples for DTM only, I don’t know if they are applicable to Launch.

       

      When working with GTM, I used custom events for these purposes. However custom events in GTM are just key-value pairs pushed into the GTM data layer. But in the DTM-related articles which I saw on the web custom events refer to something absolutely different: Javascript-native interface called CustomEvent: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent

       

      Any suggestions / documentation on this?

      Thanks a lot!