Template/Campaign Based Variable?

  • 0
  • 1
  • Question
  • Updated 5 months ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: EOL CLEANUP

Does anyone know of a way to set a variable for an email or template? This is not on an individual email address level but one variable to use dynamically throughout the email.

For example: if I have 10 different links and I want to use the same tracking code at the end of each link then I would just set the link http://www.MyLink.com + the variable

http://www.MyLink01.com/[[TemplateVariable]]
http://www.MyLink02.com/[[TemplateVariable]]
http://www.MyLink03.com/[[TemplateVariable]]
etc...

This way I only set the "tracking code" or template variable once. Then if it changes after I've set all the links (it happens) I only have to change it in one place. If I resend the email to a new audience then I only have to update the variable once. Right now I have to manually update it on each and every link.

Would love to get your feedback if you've been able to do this or if you've had this same issue!
Photo of Jason Abney

Jason Abney

  • 2 Posts
  • 0 Reply Likes

Posted 5 months ago

  • 0
  • 1
Photo of Zach Sharpe

Zach Sharpe, Employee

  • 290 Posts
  • 32 Reply Likes
Hi Jason,

Great question!

Though there is not a way to declare a variable to then utilize in your links from within Emma, there are some other solutions specifically for link tracking.

- Using Google Analytics, you can select your GA campaign from the review & send portion of your campaign, and this will handle the link tracking for you. Similar to how you would just need to change the variable to update all link tracks, you would just need to change the GA settings in your account and set the same campaign in review & send.

More on this can be found in our resource center article here:

https://support.e2ma.net/Resource_Center/Account_how-to/adding-google-analytics-campaign-tags-to-you...

Also, more on Google Analytics as a whole can be found here:

https://analytics.google.com/

- You can utilize GA locally (instead of setting it globally during the Review & Send process) by inserting GA generated links that track into your Emma email. This would allow you to have a variable type scenario for a specific link, button, or image but not track the entire mailing.

- Link click tracking is also built into Emma. We use a redirect to track link clicks and report on them in the response portion of your application. You can review this by going to response > 'mailing name' > clicks. More on this can be found here:

https://support.e2ma.net/Resource_Center/Account_how-to/understanding-your-mailing-response-numbers

I hope this helps provides some direction on a solution!

Thanks

Zach
Photo of Jason Abney

Jason Abney

  • 2 Posts
  • 0 Reply Likes
Hi Zach,

Thank you for your response. Unfortunately we are a bit more complicated...

As well as the campaign name, we attached a code to eliminate email sign up pop-up windows as they are not needed, we assign a google ID dynamically and we send traffic to very specific filtered pages. Because of this the tag sometimes can go at the end of the link and sometimes it has to go before the filter.

The only way I can see making that happen is to have a global variable or update each link manually which is what I am trying to avoid when we resend an email or send it to a different audience. 

If anyone has any other ideas I'd love to hear them?

Thank you.

Jason
Photo of Zach Sharpe

Zach Sharpe, Employee

  • 290 Posts
  • 32 Reply Likes
Hi Jason,

There would not be a way to introduce a variable from the editor, however, I am happy to reach out to our services team on your behalf to see if this is something they can explore.

They would ultimately be able to tell you if this is something they can implement as a service.

Let me know if you'd like to move forward with this and I'm happy to get a request over to them.

Thanks!

Zach
Photo of Zach Sharpe

Zach Sharpe, Employee

  • 290 Posts
  • 32 Reply Likes
Hi Jason,

I wanted to also add that  [% mailing:mailing_id %] is a piece of personalization that would pull in the specific ID for that email in the case this helps construct your link.

If used in a link it would just need to be in a double bracket syntax instead:

[[mailing_id]] or http://www.MyLink01.com/[[mailing_id]]

Thanks and let me know if I can help answer any questions on this.

Zach