Useful for preventing PII from being tracked.
Usage:
- In GA4 config tag set
page_location
={{Page URL (PII Stripped)}}. - In UA's GA Settings, set
page
={{UA Pageview URL (PII Stripped)}} andlocation
={{Page URL (PII Stripped)}}.
/**### General - Full-Width Content ###*/ | |
.gtm-container-page-content-wrapper { | |
max-width: none; | |
} | |
/** fix width of folder select box column **/ | |
.gtm-folder-card col[width="4%"]:nth-of-type(1) { width: 2.5% !important } |
<?php | |
seer_html_social_share_links( array( | |
'url' => THE URL TO SHARE, // The URL to share | |
'text' => '', // Default share text | |
'image' => IMAGE URL, // URL of the image for the share | |
//'text_before' => '', // The text to show before the buttons | |
//'text_after' => '', // The text to show after the buttons | |
'class' => '', // HTML wrapper class(es) | |
'_use_the_post' => false, // If true, uses Wordpress functions to populate default options |
/* | |
SIMPLEST USAGE: | |
Copy all this code and paste it in the console to see all the data layer's available data | |
in different formats, and learn about the data layer queue vs data layer state. | |
USAGE: | |
// See data layer state as nested objects. | |
datalayerGetAll( dataLayer ); |
<?php | |
/** | |
* Configure WP's PHP mailer to send emails from a SMTP account. | |
* Intended to be used as callback for action `phpmailer_init`. | |
* @see https://codex.wordpress.org/Plugin_API/Action_Reference/phpmailer_init | |
* @param PHPMailer &$phpmailer The PHPMailer instance, passed by reference. | |
* @version 0.2.1 | |
*/ | |
function pfx_wp_email_config( $phpmailer ){ |
<script> | |
/** | |
* This script facilitates cross-domain tracking when one site is runs | |
* GA Universal and another runs legacy GA (Traditional or Async/Classic). | |
* | |
* This integration currently unilateral, working only for users | |
* navigating from Universal > Legacy. For example: if a user clicks | |
* on a paid ad and lands directly on your asset/platform (legacy), | |
* then goes to your main site (UA), then clicks back to your asset/platform | |
* and converts, it will be tracked as two users: one that bounced from a |
<script> | |
/** | |
* Data layer pushes should always have an event (even in simple <head> snippets). | |
* But if you're dealing with an event-less push upon which you need to be able | |
* to fire a Trigger, and you cannot change the push snippet, this code will | |
* let you detect the push and add an event dynamically. | |
* | |
* Tested in Chrome, Firefox, and IE9. | |
*/ | |
(function(){ |
/** | |
* @function onDomInsert - Listener for nodes inserted into DOM. | |
* Does NOT monitor when things are removed. | |
* Based on http://stackoverflow.com/a/14570614/445295 | |
* @param [DOMNode] el - Optional. The element to listen on. Defaults to document. | |
* @param [Function] cb - Callback. Called with inserted element as only arg. | |
*/ | |
var onDomInsert = (function(){ | |
'use strict'; | |
Useful for preventing PII from being tracked.
Usage:
page_location
={{Page URL (PII Stripped)}}.page
={{UA Pageview URL (PII Stripped)}} and location
={{Page URL (PII Stripped)}}.