The Track&Engage Tracking code looks as follows:
A common use is to set the HTML Title value as the document title:
_egoiaq.push(['setDocumentTitle', document.title]); _egoiaq.push(['trackPageView']);
_egoiaq.push(['setDocumentTitle', document.domain + "/" + document.title]); _egoiaq.push(['trackPageView']);
Advanced users can also dynamically generate the page name, for example, in PHP:
_egoiaq.push(['setDocumentTitle', "<?php echo $myPageTitle ?>"]); _egoiaq.push(['trackPageView']);
By default, Goals in Track&Engage are defined as "matching" parts of the URL (starts with, contains, or regular expression matching). You can also track goals for given page views, downloads, or outlink clicks.
In some situations, you may want to register conversions on other types of actions, for example:
// logs a conversion for goal 1 _egoiaq.push(['trackGoal', 1]);
You can also register a conversion for this goal with a custom revenue. For example, you can generate the call to trackGoal dynamically to set the revenue of the transaction:
/* logs a conversion for goal 1 with the custom revenue set */ _egoiaq.push(['trackGoal', 1, <?php echo $cart->getCartValue(); ?>]);
Track&Engage allows for advanced and powerful Ecommerce tracking. Check out the Ecommerce Analytics documentation for more information about Ecommerce reports and how to set up Ecommerce tracking.
Track&Engage offers advanced Site Search Analytics feature, letting you track how your visitors use your internal
website search engine. By default, Track&Engage can read URL parameters that will contain the search keyword.
In your website, in standard pages, you would typically have a call to record Page views via
trackPageView(). On your search result page, you would call instead
trackSiteSearch(keyword, category, searchCount)
function to record the internal search request. Note: the 'keyword' parameter is required, but category and
searchCount are optional.
_egoiaq.push(['trackSiteSearch', // Search keyword searched for "Banana", // Search category selected in your search engine. If you do not need this, set to false "Organic Food", // Number of results on the Search results page. Zero indicates a 'No Result Search Keyword'. Set to false if you don't know 0 ]); // We recommend not to call trackPageView() // on the Site Search Result page _egoiaq.push(['trackPageView']);
We also highly recommend to set the searchCount parameter, as Track&Engage will specifically report "No Result Keywords", ie. Keywords that were searched, but did not return any result. It is usually very interesting to know what users search for but can't find (yet?) on your website.