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
<a href="https://www.typeeighty.com" data-vars-ga-category="Navigation" data-vars-ga-action="Outbound Link Click" data-vars-ga-label="https://www.typeeighty.com">Track Me</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
<a href="https://www.typeeighty.com" data-vars-ga-category="<category>" data-vars-ga-action="<action>" data-vars-ga-label="<label>">Track Me</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
BEFORE: | |
<input type="submit" value="Send Message" class="wpcf7-form-control wpcf7-submit btn btn-accent"> | |
AFTER: | |
<!-- Google Analytics --> | |
<input type="submit" value="Send Message" class="wpcf7-form-control wpcf7-submit btn btn-accent" onclick="ga('send', 'event', 'Form', 'Click', 'Contact Us Form', '0');"> | |
<!-- Or --> | |
<!-- Global site tag (gtag.js) - Google Analytics --> |
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
<!-- Google Analytics --> | |
onclick="ga('send', 'event', '<category>', '<action>', '<label>', '<value>');" | |
<!-- Global site tag (gtag.js) - Google Analytics --> | |
onclick="gtag('event', '<action>', { 'event_category' : '<category>', 'event_label' : '<ccc>', 'value': '<value>' });" |
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
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src=“https://www.googletagmanager.com/gtag/js?id=UA-XXXXXX-1”></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag(‘js’, new Date()); | |
gtag(‘config’, ‘UA-XXXXXX-1’); | |
</script> |
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
<script> | |
(function(i,s,o,g,r,a,m){I[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ | |
(I[r].q=I[r].q||[]).push(arguments)},I[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,’script’,’//www.google-analytics.com/analytics.js','ga'); | |
ga(‘create’, ‘UA-XXXXXX-1’, ‘auto’); | |
ga(‘send’, ‘pageview’); | |
</script> |
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 rel="stylesheet" href="/path/to/my.css" media="print" onload="this.media='all'"> |
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
// Add this script after you make your dataLayer = []; call | |
// AND after your GTM code snippet | |
// This needs to go inside the header.php in order for it work globally across your site | |
<script type="text/javascript"> | |
// URL toolbox - helps grabbing elements in the URL | |
var _d = document; | |
var _dl = _d.location; | |
var _dlp = _dl.pathname; | |
var _dls = _dl.search; | |
var _dr = _d.referrer; |
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
sudo /opt/bitnami/ctlscript.sh restart ghost |
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
sudo /opt/bitnami/ctlscript.sh restart apache |