Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with a custom vendor like Google Analytics #2

Open
tjwelde opened this issue Dec 16, 2021 · 2 comments
Open

How to use with a custom vendor like Google Analytics #2

tjwelde opened this issue Dec 16, 2021 · 2 comments

Comments

@tjwelde
Copy link

tjwelde commented Dec 16, 2021

I am not sure how to integrate this into a site.
If I configured the vendor in the backend, how can I trigger the loading and setting up of e.g. google analytics?

Also do I need to add the vendor also in the liveramp backend?

@tjwelde
Copy link
Author

tjwelde commented Dec 16, 2021

@michaellenahan could you maybe bring clarity into the fog?

@christiankohl
Copy link

christiankohl commented Dec 16, 2021

@tjwelde It is necessary to install the module and implement settings at admin/config/liveramp-configuration, especially your Application ID.

If the consent layer is displayed and working properly on your site, you can interact with TCF 2.0 compliant consent vendors like the following:
(each vendor has a specific vendor ID, in case of Google Analytics it is 10211)

window.__tcfapi('checkConsent', null, function (data, success) {
console.log(data);
}, {
data: {
"vendorId": 10211
},
recheckConsentOnChange: true,
perVendor: true
})

You can check the Liveramp API Documentation here https://docs.liveramp.com/privacy-manager/en/api-reference--gdpr-for-web-.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants