Skip to content

Commit

Permalink
blog: use GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
ifedapoolarewaju committed Jul 6, 2024
1 parent 86ee22c commit 9b9ea8d
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 95 deletions.
15 changes: 8 additions & 7 deletions docs-src/_layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,19 @@ html(lang='en')
p.mb-0 Copyright © #{new Date().getFullYear()} IGdm contributors.
script(src='https://code.jquery.com/jquery-3.2.1.slim.min.js')
script(src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js')
<!-- Google tag (gtag.js) -->
script(async, src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR")
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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
16 changes: 8 additions & 8 deletions docs/blog/how-to-schedule-instagram-messages.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,19 @@ <h5 class="mt-5">Read Other Articles</h5>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
16 changes: 8 additions & 8 deletions docs/blog/how-to-scrape-followers-of-an-instagram-account.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,19 @@ <h4>Conclusion</h4>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@ <h5 class="mt-5">Read Other Articles</h5>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
16 changes: 8 additions & 8 deletions docs/blog/how-to-send-bulk-messages-on-instagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,19 @@ <h5 class="mt-5">Read Other Articles</h5>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,19 @@ <h4>Conclusion</h4>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,19 @@ <h4>What If The Same Person Messages You Multiple Times?</h4>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
16 changes: 8 additions & 8 deletions docs/blog/igdm-on-windows-linux.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,19 @@ <h4>How to fix this</h4>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
16 changes: 8 additions & 8 deletions docs/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@ <h4><a href="https://igdm.me/blog/igdm-on-windows-linux">Getting IGdm running on
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
16 changes: 8 additions & 8 deletions docs/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,19 @@ <h2>v2.0.0 Features</h2>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
16 changes: 8 additions & 8 deletions docs/igstories.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ <h2>Donations</h2>IG:Stories
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down
16 changes: 8 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,19 @@ <h4>Issues running IGdm on your computer?</h4><span>Please see <a href="http://i
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HVCXVMJGGR"></script>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-96853108-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-HVCXVMJGGR');

document.querySelectorAll('.psa.lykdat a').forEach(function (el){
el.addEventListener('click', function(event) {
event.preventDefault()
ga('send', 'event', {
gtag('send', 'event', {
eventCategory: 'Lykdat Sponsored',
eventAction: 'click',
eventLabel: el.href,
Expand Down

0 comments on commit 9b9ea8d

Please sign in to comment.