In an email’s theme.php I can add the java scripts for Google Analyitcs tracking but theme.php seems to be used when the email is sent and when the email is viewed on-line at {email_url}.
Is there a way to tell when theme.php has been included to create the on-line version of the content (i.e. it is creating the {email_url} copy and not the email) so I can test for this and make theme.php insert the Google Analytics java script at that time?
Thanks