forked from erochest/GoogleAnalyticsErr
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig_form.php
36 lines (31 loc) · 1.57 KB
/
config_form.php
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
32
33
34
35
<?php $view = get_view(); ?>
<fieldset>
<legend><?php echo __('General Settings'); ?></legend>
<div class="field">
<div class="field-metadata two columns alpha">
<label for="GOOGLE_ANALYTICS_ACCOUNT_OPTION"><?php echo __('Google Analytics Account ID'); ?></label>
</div>
<div class="inputs five columns omega">
<p class="explanation"><?php echo __("See below for information on how to retrieve your Goolge Analytics Account ID"); ?></p>
<?php echo $view->formText(GOOGLE_ANALYTICS_ACCOUNT_OPTION, get_option(GOOGLE_ANALYTICS_ACCOUNT_OPTION)); ?>
</div>
</div>
<div class="field">
<div class="field-metadata two columns alpha">
<label for="user_opt_in"><?php echo __('Require User Consent') ?></label>
</div>
<div class="inputs five columns omeka">
<p class="explanation"><?php echo __("Check this box to require users to opt-in before being tracked by Google Analytics.") ?></p>
<?php echo $view->formCheckbox('user_opt_in', true, array('checked' => (boolean) get_option('googleanalytics_user_opt_in'))); ?>
</div>
</div>
</fieldset>
<p>To find you Google Analytics Account ID, follow these steps:</p>
<ol style="list-style: decimal inside;">
<li>Create or log into
<a href="https://www.google.com/analytics/" target="_blank">Google Analytics</a> account;
</li>
<li> Add a "Website Profile" for this Omeka.net website;</li>
<li>Copy the value for the account ID found next to the site URL (starts with "UA-" or "G-");</li>
<li>Paste it into the text field above and save changes.</li>
</ol>