Adobe Analytics for WordPress

Info

Adobe Analytics for WordPress is a solution developed by RepEquity to make it easier to enable custom pageCode for Adobe Analytics (formerly Omniture SiteCatalyst). There have been a few older plugins that offer tracking suitable for blogs. These however have not been well maintained and do not easily support custom variables and other settings for websites other than plugins.

This plugin is meant to provide those who are trained and familiar with Adobe Analytics implementation with a highly customizable tool for pageCode management.


Future Plans
  • • Method to set pageName value other than first entry or page level override as is current method
  • • Automated placement of s.pageType = “errorPage”; on 404 error pages
  • • Implementation of internals search variables
  • • Replacement token WPML integration to set a variable for selected language
  • • Support for s.event execution on comment submission
  • • Finish integration of per-post and per-page custom variables
  • • Make the custom variables form on the post/page form and the plugin settings form match
  • • Strip out parts of the metaboxes library that are not needed (i.e.. all of it except for the repeating field part)
  • • Add more tokens
  • • Clean up code that generates the analytics script into its own class with separate methods for each part of the script
  • • Add script preview to settings page
  • • Allow reordering the script
  • • Make translatable with WPML support
  • • Make multisite compatible

Proudly Sponsored by: RepEquity

Instructions

Library URL – Place in a relative or absolute URL path to the s_code or AppMeasurement.js file.

For example: /wp-content/plugins/adobe_analytics/library/AppMeasurement.js

Be sure to remove the s_account variables and all other settings from the JavaScript file. The s_account and all other settings and configurations will be put into place by the plugin for both the script and the img src beacon. This allows for a single JavaScript file to be used for multiple installations.

Account ID – Enter the Report Suite ID that you would use for the s_account variable. You may use comma separated values for multi Suite reporting.

Custom JS – Place in all of the configurations as well as plugins that you would normally place in the JavaScript file. Here is an example of this code.

All Global Variables – This section is for the placement of variables and values to appear on every page/post. Enter the variable name in the first column. Enter the value in the second column. You may add as many combinations as desired.

For example; you could place s.channel in the first column and then blog in the second column. Every page/post would then have this pair in the pageCode.

There are a number of replacement tokens that may be used in the value field. Replacement tokens may be used in combination with text or other replacement tokens. Send us a note if you have an idea for other replacement tokens.

You currently have the folowing tokens available:

  • • categories : Returns a list of comma separated categories associated with the current page.
  • • category :Returns the first category associated with the current page.
  • • type : Returns the page type (ie. home, page, post, category, tag, month).
  • • breadcrumbs : breadcrumbs for the current page as defined by the page hierarchy
  • • wpseo_breadcrumbs : breadcrumbs for the current page as defined by the wordpress seo plugin. The plugin must be installed and enabled. You must also replace the file frontend/class-breadcrumbs.php with a modified version found here => http://ow.ly/sfinZ or (advanced) applying a git diff patch found here => http://ow.ly/sfive

Individual Post and Page Variables

Each post and page includes an Adobe Analytics Variables section. You can place a variable name and value to place custom values for the individual post or page. This will override any of the conflicting values you may have entered as global variables.

Settings

These settings determine the basic reporting to the Adobe Analytics (formerly Omniture SiteCatalyst).


Can be external url or absolute path to AppMeasurement.js or s_code.js library.
Should be UNALTERED version of the library. Alterations can be added in the "Custom JS" field.

Add custom javascript block here (ie. plugin code). Do not include script tags.
WARNING: Risk of XSS - Use at your own risk!

Serialized array of custom global variables. Only visible during testing.

All Global Variables
ADD

Custom variables now support the following replacement tokens:
  • categories : a list of comma separated categories associated with the current page
  • category : the first category associated with the current page
  • type : returns the page type (ie. home, page, post, category, tag, month)
  • breadcrumbs : breadcrumbs for the current page as defined by the page hierarchy
  • wpseo_breadcrumbs : breadcrumbs for the current page as defined by the wordpress seo plugin (plugin must be installed, enabled, and modified according to instructions in the "Instructions" tab.

Credits

The Adobe Analytics for WordPress plugin was created by the development team at RepEquity. It is maintained and routinely updated by RepEquity based upon client requirements. Please submit any notes, observations or requests to RepEquity.

Special thanks to:
Miro Scarfiotti (smiro2000) – Lead plugin developer
Daniel Katz (diverdan) – Adobe Analytics specialist

Proudly Sponsored by: RepEquity