This guide helps you set up Smart Pixel tracking in just a few lines of code – ideal for testing and development.
Use this minimal setup to verify that tracking is working. For full configuration options, see Tracking Initialization.
1 Basic Integration
Make sure that the Smart Pixel file is correctly referenced and that your loaderConfig_ contains the correct domain, path, and filename.
Then, include the following snippet in your HTML:
<script type="text/javascript" async src="js/loader.min.js"></script>
<script type="text/javascript">
window.wtSmart = window.wtSmart || [];
window.wtSmart.push(function(wtSmart) {
// set initial tracking config
wtSmart.init.set({
trackId: '###MappIntelligence TrackID###',
trackDomain: '###MappIntelligence TrackDomain###'
});
// send tracking data
wtSmart.track();
});
</script>2 Key Parameters
To enable basic tracking, you need to define the following two parameters in your Smart Pixel configuration:
Parameter | Description | |
|---|---|---|
trackId |
| |
trackDomain | Specify your Mapp Intelligence track domain. This information is provided by your account manager. |
Note: Data may take up to 60 minutes to appear in Mapp Intelligence due to the update interval.
Use Live Elements in Reports to check tracking in real time.