BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - Google Tag Manager
  FAQ FAQ  Forum Search   Register Register  Login Login

Google Tag Manager

 Post Reply Post Reply
Author
Message
loisjacobs@hotmail.c View Drop Down
Newbie
Newbie


Joined: Aug 25 2017
Location: Texas
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote loisjacobs@hotmail.c Quote  Post ReplyReply Direct Link To This Post Topic: Google Tag Manager
    Posted: Aug 25 2017 at 3:54am
We implemented Google Analytics, but doesn't allow for us to track if a PDF is downloaded. 

I think Google Tag Manager will allow us to track PDF downloads, but we can't figure out how to make Google Tag Manager work in Open Element.  

Has anybody been able to make google tag manager work in Open Element?

If not, does anybody have any other way to track PDF downloads?

Thanks!
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Aug 25 2017 at 3:01pm
Hi,

"Any other way" (rough): create with Notepad a PHP script ex. "download.php":

<?php
$counterFile = 'pdf_download_count.txt';
$count = file_exists($counterFile) ? file_get_contents($counterFile) : 0;
file_put_contents($counterFile, $count+1);
header("Location: Files/Other/my_pdf.pdf")

The script increments the counter inside the text file and redirects to the PDF document. On your page, make the link to this script rather than to the PDF file.

Back to Top
Nielsbsmns View Drop Down
Newbie
Newbie


Joined: Sep 17 2020
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nielsbsmns Quote  Post ReplyReply Direct Link To This Post Posted: Sep 17 2020 at 2:38pm
I managed to install Google Tag Manager with the HTML blocks but stumbled upon a stupid wall. Can't I just add the same pieces of code on the whole website with one click of the button or do I really have to add the HTML blocks to every single page apart? Please help me out. 
Back to Top
digizar View Drop Down
Senior Member
Senior Member
Avatar

Joined: Dec 30 2015
Location: Germany Frankfu
Status: Offline
Points: 739
Post Options Post Options   Thanks (0) Thanks(0)   Quote digizar Quote  Post ReplyReply Direct Link To This Post Posted: Sep 17 2020 at 5:39pm
Put it in a Layer.
And use that Layer in those page(s).
___________________________________
Ask questions only if there is no answer yet.
https://blumendigi.com
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6195
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Sep 17 2020 at 8:49pm
You can also cascade layors
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.