Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-01-06 03:25:39

nsapc
Member
Registered: 2013-06-30
Posts: 51

Add Google Analytics Code

Using LR 6 in Windows 10, I create discrete galleries URL's for various photo projects and post to my domain using TTG 2014 HTML Gallery template. I want to add Google Analytics code to each separate gallery but this option is not available within the standard TTG 2014 template. I have been advised by the domain hoster (Go Daddy) to add the code to the default template files so it will register for each separate gallery when created in Lightroom. I suspect the appropriate TTG files are template_index.php and template_mobile.php but I cannot locate these files to do so.

Offline

#2 2016-01-06 04:45:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Add Google Analytics Code

the 2014 HTML gallery does not create template_index.php or template_mobile.php files, it outputs an index.html file.

To add Google Analytics, you should use CE4 Gallery
http://ce4.theturninggate.net/docs/doku … _analytics

The other option is to edit the exported html files and add the code to the <head> tag of the index.html file using a text editor. You can probably just add it to the Scripts section. You would need to do this with each gallery you export.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB