Comments (1)
Hi @aceykt you need add this code on the <head>
element:
```<script>
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="YOUR_KEY";;analytics.SNIPPET_VERSION="4.15.3";
analytics.load("YOUR_KEY");
analytics.page();
}}();
</script>
from consent-manager.
Related Issues (20)
- Cannot read properties of undefined (reading 'initialized'), at conditionallyLoadAnalytics HOT 4
- Recreate cookie if user has trail linked to their ID on Segment HOT 3
- I can confirm that we can add
- Custom destinations to Essential category but maintaining the N/A value HOT 2
- `shouldReload` is ignored sometimes HOT 1
- Consent Manager Builder on Render HOT 6
- Custom analytics events stopped working
- List categories instead of destinations when using ConsentManagerBuilder HOT 3
- `acceptAll` method in `bannerActionsBlock` overridden by `initialPreferences` settings HOT 5
- When using custom categories - it is not possible to create a category with N/A HOT 1
- Various typescript errors during build
- The preferencesDialogTemplate doesn't work as expected HOT 1
- Add Integrations to the Tools column that is not integrated via Segment HOT 1
- How we can use localization in standalone mode?
- Custom styling ConsentManager HOT 2
- Reload loop
- Setting shouldRequireConsent to false on version 5.8.1 does not track
- Send anonymous data on decline/no answer
- Minimal snippet version requirement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consent-manager.