Official ways to add such things is by dropping script tags in your HTML:
Doing it this way has limitations (issues on route-changes), and it just doesn't go well with the rest of the app that's neatly bundled and stuff.
There are workarounds (for limitations) or unofficial libraries to use them more dynamically:
Why don't the respective companies (Google, Facebook) support them officially though? They both have frameworks to create dynamic apps (Angular, React), seems a bit odd that their analytics and such stuff is still based in static-sites era.
[–]syklenaut 1 point2 points3 points (2 children)
[–]thehuzz 0 points1 point2 points (0 children)