Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
developer.skroutz.gr/source/localizable/analytics/how_it_works.html.md.erb
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (27 sloc)
1.02 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
parent: analytics | |
title: how_it_works | |
--- | |
# How It Works <%= edit_link %> | |
<%= partial 'partials/toc' %> | |
## The Tracking Script | |
> The source of the tracking script is hosted on | |
[GitHub](https://www.github.com/skroutz/analytics.js). | |
The tracking script, registers a new global function named `<%= "#{flavor}_analytics" %>`, and then | |
asynchronously loads the `analytics.js` library onto the page. | |
The `<%= "#{flavor}_analytics" %>` global function is the main way you interact with the Analytics library. | |
It accepts a sequence of parameters, that represent: | |
Category | |
: The API category | |
Command | |
: The Command of the API category you want to be executed | |
Data | |
: The Data to be reported by the Command | |
> ##### Note | |
> *Categories* and *Commands* are **case-sensitive**. | |
## Related Resources | |
* Configuration | |
* <%= link_to 'Analytics Settings', '/analytics/settings' %> | |
* <%= link_to 'Ecommerce metrics', '/analytics/ecommerce' %> | |
* <%= link_to 'Examples', '/analytics/examples' %> | |
* <%= link_to 'Libraries', '/analytics/libraries' %> |