Advanced visitor segmentation for Overlays, Promo Bars in SPA

Sometimes you have specific information about your visitors. That can be used for ad targeting if you can pass this data on to the MaxTraffic platform. 

With a tiny JavaScript snippet, you can give us the information about your visitor status, history or activities on the page.

Some potential segments that could be used for targeting:
- Visitor has products in his shopping cart
- Cart total amount is below 50€ (maybe you have a free shipping for larger orders)
- Visitor has logged in
- Visitor is a female / male
- Visitor has not signed up for your newsletter

You can define one segment:

<script>
//define segments
mt('segments', ['has products in cart']);

//execute pageview event (must have for SPA page)
mt('pageview');
</script>

Or also several segments at once, if needed:

<script>
//define segments
mt('segments', ['has products in cart', 'cart total below 50€', 'female']);

//execute pageview event (must have for SPA page)
mt('pageview');
</script>


As a result of giving this information to our platform, you will see new additional targeting options on the third step of campaign creation process.