The "Page visit notification" event is used to report when a contact visits any page. The event notifies you when a user makes a visit to your website, via JavaScript using the function connectif.managed.sendEvents.
How to use it
The page visit notification uses the entityInfooption, of the sendEvents method, to enrich the information about sent events.
Report browser and page information
This type of event automatically collects the following information:
- Browser Info:
- Device type: mobile or desktop
- URL
- Referer
- IP
- Page info::
Attribute | Definition | Limitations |
---|---|---|
title |
The head |
The first 50 characters are obtained, the rest disregarded. |
keywords |
The first 10 keywords of the |
The first 10 keywords are obtained, the rest disregarded. Each keyword element can have a value of maximum 25 characters, remaining characters will be disregarded. |
tags |
The information obtained via the "Page Tag". |
The first 10 tags are obtained, the rest disregarded. Each "tag" element can have a value of maximum 25 characters, the rest of the characters disregarded. |
categories |
The information obtained via the "Page Category"tag. |
The first 10 categories are obtained, the rest disregarded. Each "category" element can have a maximum of 25 characters, with the remaining characters disregarded. |
Other considerations
The options in the sendEvents method allow you to overwrite some or all of the values of the information on the page.
connectif.managed.sendEvents([ { "type": "page-visit" } ], { entityInfo, cart, pageInfo: { tags: ['tag1','tag2'], categories: ['cat1', 'cat2'] });
Example
The notification will look like this:
connectif.managed.sendEvents([ { "type": "page-visit" } ], { entityInfo, cart, pageInfo: { title: 'My page title', keywords: ['key1', 'key2'], tags: ['tag1','tag2'], categories: ['cat1', 'cat2'] }});
Keep learning!
To make the most of your Connectif account, we recommend reading these articles next:
- Add Connectif JavaScript to your website, to insert the code and start collecting information about visits to your page.
- Tag integration, to discover all the notifications you can send from your ecommerce to Connectif and how they work.
- Integration with Connectif via API, to synchronize contacts, products, purchases and vouchers.
- Check the integration with your ecommerce, so you can be confident that your data is syncing correctly with your Connectif account.