Gabriel Torres Posted June 24, 2018 Share Posted June 24, 2018 Hi guys, I need to add a tracking tag within the <head> tag, but only in a few selected pages. We have Pages installed, and these pages belong to the same database, so I wonder if there is something we could edit somewhere that would apply this code only for that database. Of course we can write a plugin to achieve what we need, but I am wondering if there is an out-of-the-box solution first. Best regards, Gabe. Link to comment Share on other sites More sharing options...
AlexWright Posted June 24, 2018 Share Posted June 24, 2018 43 minutes ago, Gabriel Torres said: Hi guys, I need to add a tracking tag within the <head> tag, but only in a few selected pages. We have Pages installed, and these pages belong to the same database, so I wonder if there is something we could edit somewhere that would apply this code only for that database. Of course we can write a plugin to achieve what we need, but I am wondering if there is an out-of-the-box solution first. Best regards, Gabe. Make or add a custom template that includes that code. Swap the pages you want to track over to that template. You can copy the code from already-existing templates, make a new template, paste that code, then add your tracking code. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.