Download the PHP package edisonlabs/adobe_analytics without Composer
On this page you can find all versions of the php package edisonlabs/adobe_analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download edisonlabs/adobe_analytics
More information about edisonlabs/adobe_analytics
Files in edisonlabs/adobe_analytics
Package adobe_analytics
Short Description Adds Adobe Analytics JavaScript tracking code to your site's pages.
License GPL-2.0+
Informations about the package adobe_analytics
Adds the Adobe Analytics system to your website.
Requirements
- Token module.
Installation
Install like any other module via Drush or the web administration interface.
Configuration
To enable the environment mode for the Adobe analytics module, add the configuration in settings.php file as:
Setting it to dev will fire the development scripts and setting it to prod will fire the production scripts.
To add the scripts, navigate to Administration > Configuration > Adobe Analytics, where the main configuration settings live. These apply to all non-administration pages and support additional conditions based on the role of the user making a request.
If you need to override or extend the settings in a particular entity, then add a field of type Adobe Analytics to the entity bundle. Once you have done that, the edit form of an entity will show an Adobe Analytics section where you can override the global settings.
API
Here is an example of module code that you can use to create variables more suited to tracking your needs by utilizing hook_adobe_analytics_variables(). This code should go in your custom module's .module file and modified accordingly. For illustration purposes we are adding a setting to the adobe_anlaytics administration form to allow site administrators to control whether or not they want to track our custom "referring_search_engine" variable.
Note: Do not forget to rename the functions.