PluginProbe ʕ •ᴥ•ʔ
Independent Analytics – WordPress Analytics Plugin / 2.15.0
Independent Analytics – WordPress Analytics Plugin v2.15.0
2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 1.19.1 1.2 1.20.0 1.21.0 1.22.0 1.22.1 1.23.0 1.23.1 1.24.0 1.24.1 1.25.0 1.25.1 1.26.0 1.27.0 1.28.0 1.28.1 1.28.2 1.28.3 1.29.0 1.3 1.30.0 1.30.1 1.4 1.5 1.6 1.7 1.8 1.9 2.0.0 2.0.1 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.10 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.11.9 2.12.0 2.12.1 2.12.2 2.13.1 2.13.2 2.13.5 2.13.6 2.14.0 2.14.1 2.14.2 2.14.4 2.14.6 2.14.7 2.14.8 2.14.9 2.2.0 2.2.1 2.3.1 2.3.2 2.4.2 2.4.3 2.5.0 2.5.1 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.7.1 2.7.2 2.7.3 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7
independent-analytics / views / campaign-builder.blade.php
independent-analytics / views Last commit date
click-tracking 2 days ago date-picker 2 days ago email 2 days ago examiner 3 months ago icons 2 days ago integrations 2 days ago interrupt 2 days ago journeys 2 days ago notices 6 months ago overview 2 days ago partials 2 days ago settings 2 days ago tables 2 days ago campaign-builder.blade.php 2 months ago chart.blade.php 11 months ago debug.blade.php 11 months ago plugin-group-options.blade.php 2 days ago quick-stat-loading.blade.php 11 months ago quick-stat.blade.php 2 days ago quick-stats.blade.php 2 days ago real-time.blade.php 2 days ago support.blade.php 6 months ago updates.blade.php 2 days ago woocommerce-order-meta-box.blade.php 2 days ago
campaign-builder.blade.php
207 lines
1 <?php
2 $new_campaign_url = $new_campaign_url ?? null;
3 $path = $path ?? null;
4 $path_error = $path_error ?? null;
5 $utm_source = $utm_source ?? null;
6 $utm_source_error = $utm_source_error ?? null;
7 $utm_medium = $utm_medium ?? null;
8 $utm_medium_error = $utm_medium_error ?? null;
9 $utm_campaign = $utm_campaign ?? null;
10 $utm_campaign_error = $utm_campaign_error ?? null;
11 $utm_term = $utm_term ?? null;
12 $utm_content = $utm_content ?? null;
13 ?>
14
15 <div class="campaign-builder" data-controller="campaign-builder">
16 <div class="settings-container">
17 <div class="settings-container-header">
18 <h2><?php esc_html_e('Campaign URL Builder', 'independent-analytics'); ?></h2>
19 <a class="link-purple"
20 href="https://independentwp.com/knowledgebase/campaigns/how-to-campaign-builder"
21 target="_blank">
22 <?php esc_html_e('Learn how to create campaigns', 'independent-analytics'); ?> <span class="dashicons dashicons-external"></span>
23 </a>
24 </div>
25 <form action="" data-action="campaign-builder#submit" data-campaign-builder-target="form">
26 <div class="table-container">
27 <table class="form-table campaign-table" role="presentation">
28 <tbody>
29 <tr>
30 <th scope="row">
31 <label for="iawp_site_url"><?php esc_html_e('Site URL', 'independent-analytics'); ?></label>
32 </th>
33 <td>
34 <input type="text"
35 name="site_url"
36 id="iawp_site_url"
37 value="<?php echo trailingslashit(home_url()) ?>"
38 disabled="disabled"
39 />
40 <p class="description"><?php esc_html_e('Campaign links always lead to your site', 'independent-analytics'); ?></p>
41 </td>
42 </tr>
43 <tr>
44 <th scope="row">
45 <label for="iawp_path"><?php esc_html_e('Landing Page Path', 'independent-analytics'); ?></label>
46 </th>
47 <td>
48 <input type="text"
49 name="path"
50 id="iawp_path"
51 placeholder="blog/some-post"
52 value="<?php echo esc_attr($path) ?>"
53 />
54 <p class="description"><?php esc_html_e('Leave empty to use your homepage', 'independent-analytics'); ?></p>
55 <?php if (isset($path_error)): ?>
56 <p class="error"><?php echo esc_html($path_error) ?></p>
57 <?php endif; ?>
58 </td>
59 </tr>
60 <tr>
61 <th scope="row">
62 <label for="iawp_utm_source"><?php esc_html_e('Source', 'independent-analytics'); ?><span
63 class="required">*</span></label>
64 </th>
65 <td>
66 <input type="text"
67 name="utm_source"
68 id="iawp_utm_source"
69 placeholder="Twitter"
70 value="<?php echo esc_attr($utm_source); ?>"
71 class="<?php echo isset($utm_source_error) ? 'error' : '' ?>"
72 />
73 <p class="description"><?php esc_html_e('Name of the website the link will be placed on', 'independent-analytics'); ?></p>
74 <?php if (isset($utm_source_error)): ?>
75 <p class="error"><?php echo esc_html($utm_source_error) ?></p>
76 <?php endif; ?>
77 </td>
78 </tr>
79 <tr>
80 <th scope="row">
81 <label for="iawp_utm_medium"><?php esc_html_e('Medium', 'independent-analytics'); ?> <span
82 class="required">*</span></label>
83 </th>
84 <td>
85 <input type="text"
86 name="utm_medium"
87 id="iawp_utm_medium"
88 placeholder="<?php esc_attr_e('Social Media', 'independent-analytics'); ?>"
89 value="<?php echo esc_attr($utm_medium) ?>"
90 class="<?php echo isset($utm_medium_error) ? 'error' : '' ?>"
91 />
92 <p class="description"><?php esc_html_e('Type of website e.g. Search, Social, Ad', 'independent-analytics'); ?></p>
93 <?php if (isset($utm_medium_error)): ?>
94 <p class="error"><?php echo esc_html($utm_medium_error) ?></p>
95 <?php endif; ?>
96 </td>
97 </tr>
98 <tr>
99 <th scope="row">
100 <label for="iawp_utm_campaign"><?php esc_html_e('Campaign', 'independent-analytics'); ?> <span class="required">*</span></label>
101 </th>
102 <td>
103 <input type="text"
104 name="utm_campaign"
105 id="iawp_utm_campaign"
106 placeholder="<?php esc_attr_e('5 Ways to Get More Traffic', 'independent-analytics'); ?>"
107 value="<?php echo esc_attr($utm_campaign) ?>"
108 class="<?php echo isset($utm_campaign_error) ? 'error' : '' ?>"
109 />
110 <p class="description"><?php esc_html_e('Title of the page or ad', 'independent-analytics'); ?></p>
111 <?php if (isset($utm_campaign_error)): ?>
112 <p class="error"><?php echo esc_html($utm_campaign_error) ?></p>
113 <?php endif; ?>
114 </td>
115 </tr>
116 <tr>
117 <th scope="row">
118 <label for="iawp_utm_term"><?php esc_html_e('Term', 'independent-analytics'); ?></label>
119 </th>
120 <td>
121 <input type="text"
122 name="utm_term"
123 id="iawp_utm_term"
124 placeholder="<?php esc_attr_e('Get website traffic', 'independent-analytics'); ?>"
125 value="<?php echo esc_attr($utm_term) ?>"
126 />
127 <p class="description"><?php esc_html_e('Keyword used in paid advertising', 'independent-analytics'); ?></p>
128 </td>
129 </tr>
130 <tr>
131 <th scope="row">
132 <label for="iawp_utm_content"><?php esc_html_e('Content', 'independent-analytics'); ?></label>
133 </th>
134 <td>
135 <input type="text"
136 name="utm_content"
137 id="iawp_utm_content"
138 placeholder="<?php esc_attr_e('Bio link', 'independent-analytics'); ?>"
139 value="<?php echo esc_attr($utm_content) ?>"
140 />
141 <p class="description"><?php esc_html_e('Position of the link on the page e.g. author bio', 'independent-analytics'); ?></p>
142 </td>
143 </tr>
144 </tbody>
145 </table>
146 </div>
147 <div class="submit-container">
148 <p class="submit">
149 <button class="button iawp-button purple"
150 data-campaign-builder-target="submitButton"
151 >
152 <span><?php esc_html_e('Create Campaign URL', 'independent-analytics'); ?></span><span
153 class="dashicons dashicons-update"></span>
154 </button>
155 </p>
156 </div>
157 </form>
158 <?php if (isset($new_campaign_url)): ?>
159 <div class="new-campaign-notice">
160 <p><span class="dashicons dashicons-yes-alt"></span> <?php esc_html_e('New campaign created!', 'independent-analytics'); ?></p>
161 </div>
162 <?php endif; ?>
163 </div>
164 <div class="settings-container">
165 <div class="campaigns-heading">
166 <h2><?php esc_html_e('Latest Campaign URLs', 'independent-analytics'); ?></h2>
167 </div>
168 <?php foreach ($campaigns as $campaign): ?>
169 <div class="campaign">
170 <div class="campaign-copy">
171 <div class="campaign-text">
172 <input readonly type="text" class="campaign-url"
173 data-controller="select-input"
174 data-action="click->select-input#selectInput"
175 value="<?php echo esc_attr($campaign['url']); ?>">
176 <p class="campaign-created-at">
177 <?php printf(esc_html_x('Created %s', 'Created five minutes ago', 'independent-analytics'), esc_html__($campaign['created_at'])); ?>
178 </p>
179 </div>
180 <div class="campaign-actions">
181 <button class="iawp-button purple"
182 data-controller="clipboard"
183 data-action="clipboard#copy"
184 data-clipboard-text-value="<?php echo esc_attr($campaign['url']); ?>"
185 >
186 <?php esc_html_e('Copy URL', 'independent-analytics'); ?>
187 </button>
188 <button class="iawp-button ghost-purple"
189 data-action="campaign-builder#reuse"
190 data-result="<?php echo esc_attr($campaign['result']) ?>"
191 >
192 <?php esc_html_e('Copy to Form', 'independent-analytics'); ?>
193 </button>
194 <button class="iawp-button ghost-red"
195 data-action="campaign-builder#delete"
196 data-campaign-url-id="<?php echo esc_attr($campaign['campaign_url_id']); ?>"
197 >
198 <?php esc_html_e('Delete', 'independent-analytics'); ?>
199 </button>
200 </div>
201 </div>
202 </div>
203 <?php endforeach ?>
204 <p class="campaigns-empty"><?php esc_html_e('No campaign URLs found', 'independent-analytics'); ?></p>
205 </div>
206 </div>
207