This tag template is a wrapper around the main CampaignCollector.js library and provides a simplified interface for users to configure the library without having to utilize Custom HTML/JS code to do so.
Important
For a full README on what this tag does. Please see the main CampaignCollector.js library.
This tag template loads Level's CampaignCollector library through the jsDelivr.com CDN.
Google does not offer a way to let the end user define what location the scripts are loaded from inside their tag template sandboxed JS and permission set. If you wish to load the library via your own 1st party domain (or another CDN), you will need to use the Custom HTML/JS tag template and host the library yourself. Please see CampaignCollector: Installation Options.
- The template will write/read/execute to a
_campaignCollectorglobal variable, and several sub-properties of it. - The template will access the
CampaignCollector.createmethod to initialize a the library on the_campaignCollectorglobal mentioned above. - The template will access the
CampaginCollector.consentChangemethod to emit an event to the instances to handle changes in consent state forad_storage,analytics_storage,ad_user_data,ad_personalization
The template will listen/read the consent state for the following types:
ad_storageanalytics_storagead_user_dataad_personalization
