To install Volument, paste the following code snippet anywhere before your website's closing </body> tag:
Please replace your-token with your token that you'll get after signing up for the service.
After the snippet is in place, Volument automatically tracks visitor activity and how they consume your content.
Call this method when the vistor and converts to a customer by handing their payment information such as the credit card and no money is paid at the spot. This method is an alias to volument.pay(0) .
Call this method when the visitor becomes a “lead.“ That is: they hand their email or phone number so you have a way to reach them.
Call this method when you can uniquely identify the visitor. We use the supplied ID for two purposes:
When the visitor uses different devices to browse your website, Volument uses this identity to merge those devices into a single account.
We use the ID to track when the invited peers accept the invitation.
The required userId parameter is a case-sensitive string and must be fewer than 48 characters. No two users in your environment may share the same ID.
Do not identify users based on an anonymous ID, random ID, session ID, or any value that might change. Volument explicitly denies all attempts to use an email address as an identifier since we don't store such sensitive information on our system.
Call this method when the visitor invites her friends or other associates to your product contributing to the viral growth of your product. The required userId parameter is the ID of the invited person.
Call this method when the visitor hands their payment information and pays the given amount in your local currency. The visitor is converted to a customer.
Dynamically generated pages
Sometimes your paths takes the following form: /products/d0819be03b83ec1e5, where the last part is an ID that identifies the page's content. On this case it might make sense to group these pages with similar content togeter:
The goal is to optimize the layout for all these pages, and not for the individual ones.
Data sampling is fast because the page view data is collected from all the pages. You can make frequent optimizations because the statistical significance is reached quickly.
Page listings on the Volument UI are not bloated with hundreds or thousands of individual pages.
You can truncate paths with a shorten parameter as follows:
You can provide multiple paths by separating them with a space character. For example:
shorten: '/products /profiles'
If your site is a single-page application (SPA) and routing is built around pushState (PJAX, Turbolinks, or similar) you can setup Volument as follows:
After this you must track all page switches with volument.route() method, for example:
In fact, the Volument website is actually build as a single-page application so we can provide much faster page loads for our visitors.
Call this method when the visitor is routed to a new page. After this Volument starts tracking how the new page is consumed.
The optional path argument identifies the page, and it is displayed on all the analytical views. location.pathname is used by default.
You can disable tracking with disabled option as follows:
For example it makes sense to disable tracking completely in a development environment. When tracking is disabled no data is sent to our servers.
Do not track- option
You can disable tracking for indiviual visitors too. One scenario is to look for navigator.doNotTrack configuration option on the browser. On this case the user has explicitly requested not to be tracked by web sites. For example: