I’m hoping I’ll explain this well…not sure how to figure it out yet.
I have a “main_pages” channel (using the Pages module) that grabs from about 10 or so other channels and serves them up on each page. I’ve created a couple of different template types, one of which is a “landing page” template that allows a user to paste Google Analytics tracking code into the page so that we can track that particular page in analytics (as part of a goal, etc.).
So basically, if the channel is “main_pages” I’m going to query whether the the {pages_google} field is populated, and if not, serve the standard Google Analytics code.
So this code is going to be in a footer that is shared across all templates. How do I get templates that aren’t part of the “main_pages” channel to ignore this code and allow all the other pages to use the standard analytics code?
I was looking at the conditional variables, and didn’t see anything that would let me make a conditional based on channel. Is there a way to do this? Or do I just have to break down and create a second footer (BLEH!)?