Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
I would like to add the Google Analytics code inside the anchor tag to track PDF and doc files. I have been unsuccessful searching the forums save for the suggestion to add http://wordpress.org/plugins/black-studio-tinymce-widget/, which didn’t work.
Any suggestions? Thanks.
Hi Hrosen,
If you haven’t already, please install Insert Headers and Footers and add your Google Analytics tracking code visa that plugin.
You can definitely use HTML to do this. The HTML would look like this:
For more information, please refer to this page.
Hi Alex,
Thanks for the info. Yes, I had the basic Google Analytics code installed. The issue is specific to the Melos theme and Page Builder. The latter strips out the PDF tracking code. Is there any way around that? I did allow WordFence to whitelist the link to the file.
Thanks,
Hal
Hi Hal,
To clarify, how are you adding the tracking code to your links? The Text widget, the SiteOrigin Editor widget? Please add the link via the Custom HTML widget.
Thanks. I'll try this before too long.