Skip to content

Commit

Permalink
Merge pull request #2 from jkoenig/patch-1
Browse files Browse the repository at this point in the history
Update cta.rst
  • Loading branch information
groganz committed Dec 1, 2015
2 parents 8103474 + 4e30ea2 commit d5908cf
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions administrator/configuration/cta.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ by CampaignChain to your new Channel. You will need this ID in the next step.
2. Include Tracking Code
------------------------

First, include a JavaScript file provided by CampaignChain in the HTML of the
online channel you plan to include.
2.1 Directly within HMTL Source Code

If you own the channel you plan to include and you have full control to directly manipulate the HTML source, you can include a JavaScript file provided by CampaignChain an all of you pages.

The file is named *campaignchain_tracking.js* and once you have it included, it
will take care of sending all the information for tracking CTAs to your
Expand All @@ -44,6 +45,14 @@ Include the file by adding the code below to your channel, ideally right before
the closing body element (i.e. *</body>* element) and make sure that it appears
on all pages of the Channel.

2.2 Use Google Tag Manager

Rather than waiting months for site code updates of channels you not own or that are not controlled by you, Google Tag Manager (GTM) lets you launch new tags with just a few clicks. The GTM provides container snippet, a small piece of JavaScript and non-JavaScript code that you paste into your pages once. Google Tag Manager than allows you to create a new 'Custom HTML Tag' at the GTM web interface *https://tagmanager.google.com*. Paste the CampaignChain tracking code into the 'HMTL' section. Make sure the event is fired on all pages. The last step is publish your new tag in GTM.

2.3. The CampaignChain Tracking Code

Independently from placing the tracking code diretly to the HTML source or using GTM, here is how the JavaScript looks like:

.. code-block:: html

<script type="text/javascript" src="[CAMPAIGNCHAIN INSTALLATION]/bundles/campaignchaincore/js/campaignchain/campaignchain_tracking.js"></script>
Expand All @@ -55,4 +64,4 @@ Replace ``[CAMPAIGNCHAIN INSTALLATION]`` with the URL of the root of your Campai
installation, e.g. *http://www.example.com/bundles/campaignchaincore/js/campaignchain/campaignchain_tracking.js*.

Next, replace ``[CAMPAIGNCHAIN CHANNEL TRACKING ID]`` with the ID generated by
CampaignChain for your channel.
CampaignChain for your channel.

0 comments on commit d5908cf

Please sign in to comment.