-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_form.php
More file actions
executable file
·35 lines (31 loc) · 1.64 KB
/
config_form.php
File metadata and controls
executable file
·35 lines (31 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Google Tag Manager Plugin
* @copyright Copyright 2013 The Digital Ark, Corp.
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 or any later version
* @package GoogleTag Manager
*/
?>
<?php $view = get_view(); ?>
<div id="google-tag-manager-settings">
<h2><?php echo __('Google Tag Manager Settings');?></h2>
<div class="field">
<div class="two columns alpha">
<?php echo $view->formLabel('tagmanagerContainer', __('Container ID')); ?>
</div>
<div class="inputs five columns omega">
<?php echo $view->formText('tagManagerContainerId', $tagManagerContainerId); ?>
</div>
</div>
<p class="explanation">Your Google Tag Manager Container ID can be found by following the steps below.</p>
<ul class="explanation">
<li>Log into Google Tag Manager - <a href="http://www.google.com/tagmanager" target="_blank">http://www.google.com/tagmanager</a></li>
<li>Select your Account in the list of Accounts</li>
<li>Click on "Containers" to view the list of available containers</li>
<li>Select your the desired container - the ID <i>(GTM-XXXXXX)</i> is displayed right next to the container name</li>
</ul>
<p class="explanation"><b>Please note</b>: In order for the tag to be included in your template files, you will need to ensure that following hook
<br /><code style="font-size: 90%"><?php fire_plugin_hook('public_body', array('view' => $this)); ?></code>
<br />is inserted right after the <code style="font-size: 90%"><body></code> tag of your theme (e.g. in <i>yourtheme/common/header.php</i>).
</p>
</div>