Skip to content

Commit

Permalink
Update cta.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
groganz committed Dec 1, 2015
1 parent d5908cf commit 6a30dfc
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions administrator/configuration/cta.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,38 @@ by CampaignChain to your new Channel. You will need this ID in the next step.
------------------------

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.
If you own the Channel you plan to include and you also have full control
to directly manipulate the HTML source, then you can include a JavaScript file
provided by CampaignChain an all of your Channel's 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
CampaignChain instance.

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.
Include the file by adding the code mentioned 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.
In case you can't access the Channel or instead of waiting months for someon else
to update the code of a Channel, Google Tag Manager (GTM) comes to the rescue. It
lets you launch new tags with just a few clicks. GTM supports container snippets,
a small piece of JavaScript or non-JavaScript code that it includes into your pages.

Google Tag Manager allows you to create a new *Custom HTML Tag* at the `GTM Web
interface`_. Paste the CampaignChain tracking code into the *HMTL* section. Make
sure the event is fired on all pages. The last step is to 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:
Independently from placing the tracking code diretly to the HTML source or using GTM,
here is how CampaignChain's JavaScript tracking code looks like:

.. code-block:: html

Expand All @@ -65,3 +79,5 @@ installation, e.g. *http://www.example.com/bundles/campaignchaincore/js/campaign

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

.. _GTM Web interface: https://tagmanager.google.com

0 comments on commit 6a30dfc

Please sign in to comment.