External Services
This document describes how inject external services into the application. The main outline is to add a GTM script in DatoCMS under “Site Settings” -> “External Services”, then the rest is managed inside GTM.
Pre-requisites
1. Add Facebook Pixel to GTM
- If there is no custom event called “Consent”
- In GTM, go to Triggers
- click New and select Custom Event as trigger type
- Enter “cookie_consent_update” as Event Name
- Set the name to “Consent” and save
- Create a new Tag
- Find the Facebook Pixel tag type in the Community Template Gallery
- Paste your Facebook Pixel ID in the “Pixel ID” field
- Add a trigger
- Pick our “Consent” custom event
- Hit Save
2. Verify installation in GTM preview
Done
More reading