consent tracking
parent
6e8f02010e
commit
473f37f894
|
@ -53,13 +53,24 @@
|
|||
%}
|
||||
|
||||
<script>
|
||||
{% liquid
|
||||
capture shx_get_environment
|
||||
render "shx-get-environment"
|
||||
endcapture
|
||||
%}
|
||||
console.log("2",)
|
||||
|
||||
console.log("1", "url", {{ shx_get_environment }}, "{{ shop.permanent_domain }}")
|
||||
window.Shopify.loadFeatures([
|
||||
{
|
||||
name: 'consent-tracking-api',
|
||||
version: '0.1',
|
||||
}
|
||||
],
|
||||
function(error) {
|
||||
if (error) {
|
||||
throw error;
|
||||
}
|
||||
console.log("here1")
|
||||
|
||||
document.addEventListener('visitorConsentCollected', () => {
|
||||
console.log("here2 visotorConsentCollected")
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue