Best Practices for Tags in a SPA
Hi!
Does anybody have any suggestions on implementing Tags in a SPA?
I want to become more proficient with Tags so I created a new Remix app (uses React) and a new Tags property.
Should I just include the Tags script in the `<head>` for my environment, install a data layer extension like Adobe Client Data Layer, and push events to it from my Remix app?
For example, page load events could be pushed from a `useEffect` in route components.
Then we can set up rules for these page load events and set Adobe Analytics variables using the data that is pushed with the event.
Or is there a "better" way to implement Tags than this for a SPA?
For example, I ran across this video recently and am wondering if this is an alternative way to do what I just described above?
https://www.youtube.com/watch?v=D9eouvCtNRU
Would like to know before I invest more time into thinking how to structure my dummy Remix app and my data layer, and rules and data elements, etc.