This page last changed on Oct 18, 2011 by jed.wheeler@involver.com.

Overview

The analytics_link_to tag enables you to create analytics-powered anchors to the specified URL. User clicks will be reported in AMP.


Caching Considerations

This tag has no caching considerations.


Attributes

name type required description
text string true Text shown between the anchor tags
url string true URL to link to. Equivalent to the HTML href attribute
class string false The class attribute for the link
id string false The id attribute for the link
style string false The style attribute for the link
onclick string false The handler for javascript code on every click of the link
onfirstclick string false Same as onclick, except the javascript is only executed on the first click of the link

Context Variables

This tag has no context variables.


Examples

Simple Example

Simple analytics link:

{% analytics_link_to text:"Involver" url:"http://www.involver.com" %}

/* => <a href="/(analytics wrapped URL to http://www.involver.com)">Involver</a> */

Complex Example

You may also pass SML variables into text and url parameters:

{% assign involver_text = "Involver" %}

{% assign involver_url = "http://www.involver.com" %}

{% analytics_link_to text:involver_text url:involver_url %}

/* => <a href="/(analytics wrapped URL to http://www.involver.com)">Involver</a> */

Analytics information for clickthroughs can be viewed in the exported "Application Summary" report.

In order to get that information, you need:

  1. go to AMP->Social Apps and add your Facebook page that has SML tab
  2. select Facebook page name => you should see "Summary Report" page: http://screencast.com/t/TXsoZzaci2xR
  3. select "Application Summaries" in the "Report Type" drop-down
  4. click "Email Summary Report" button.
  5. wait for several minutes => your report should be sent to the email address with which you are signed into AMP

The report columns for the analytics_link_to tag will look similar to this: http://screencast.com/t/bTKBjkCxamIf.


FAQ

There are currently no FAQ questions for this tag.


Related Topics

Document generated by Confluence on Feb 12, 2013 09:09