This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add to Child Theme's functions.php. | |
*/ | |
add_action( 'wp_footer', function () { | |
if (is_page ('2')) { | |
?> | |
<script> | |
// Dynamic Label Snippet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
Go to my | |
<a | |
href="http://caughtmyeye.epizy.com/link-tracking/" | |
data-vars-ga-category="internal-link" | |
data-vars-ga-action="http://caughtmyeye.epizy.com/" | |
data-vars-ga-label="http://caughtmyeye.epizy.com/link-tracking/"> | |
link tracking | |
</a> | |
page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add to Child Theme's functions.php. | |
*/ | |
add_action( 'wp_footer', function () { | |
if (is_page ('2')) { | |
?> | |
<script>// Custom Label Snippet | |
let dl948914 = document.querySelector("a"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form | |
action="http://caughtmyeye.epizy.com/simple-form/" | |
id="simple-test-form" | |
method="post" | |
data-avia-form-id="1" | |
data-avia-redirect="" | |
_lpchecked="1" | |
> | |
<fieldset> | |
<h3>Simple Test Form</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (document.URL === "https://myverycool.site/form-page/") { | |
const subBtn949478 = document.querySelector( | |
"form#avia_contact_6935_contact-us-about input.button" | |
); | |
if (subBtn949478) { | |
subBtn949478.addEventListener( | |
"click", | |
function (evt) { | |
__gaTracker( | |
"send", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom Filter for the User ID Dimension | |
* | |
* Add this to your theme's functions.php file. | |
*/ | |
function display_username_instead_of_user_id( $user_id ) { | |
$user = get_user_by( 'id', $user_id ); | |
return $user->user_login; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<~-- link href="https://cdn.jsdelivr.net/gh/marklchaves/[email protected]/dist/cme-styles.min.css" rel="stylesheet" / --> | |
<div class="image-caption" style="width:694px;margin-top:0px;margin-bottom:px;margin-right:auto;margin-left:auto;"> | |
<img alt="GET INSTANT ACCESS" src="https://via.placeholder.com/550x250" class="full-width lazyloaded" data-ll-status="loaded" border="0"> | |
</div> | |
<form action="#" method="POST" sejds-popupally-pro-anti-spam-uengs="hts/t29ifsosf.o/p/ompoescc2e39092de8df6a" qweokgj-popupally-pro-anti-spam-mwhgser="tp:/s6.nuinotcmapfr/rcs/d9d04fde426bab8b" popupally-pro-popup="77" class="popupallypro-signup-form-sijfhw popupally-pro-inner-rwnkmg-77"> | |
<div class="image-1-pro-rwnkmg"></div> | |
<div class="image-2-pro-rwnkmg"></div> | |
<div class="desc-pro-rwnkmg"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Modified to mockup sending an impression to GA for every slide displayed. | |
* | |
* I don't think this is really practical, but it was a customer request. | |
*/ | |
!function(e) { | |
var t = {}; | |
function o(a) { | |
if (t[a]) | |
return t[a].exports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_head', function () { | |
if (is_single ()) { | |
?> | |
<script> | |
// Post ID Custom Dimension Snippet | |
let dimension9Value = '<?php echo get_the_id() ?>'; | |
//ga('set', 'dimension9', dimension9Value); | |
ga('send', 'event', 'dimension', 'Post ID', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put far down in footer as possible. | |
setTimeout(function() { | |
if (window.ga && ga.loaded) { | |
console.log('GA is loaded.'); | |
} else { | |
console.log('GA is NOT loaded.'); | |
// Maybe do more interesting things here. | |
} | |
}, 5000); // Give time for the page to load. |
OlderNewer