Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Personalizing URL with campaign name and launch date

romulocostacurt
Level 2
Level 2

Hi! I'm pretty new to Adobe Campaing and the client I'm working with have the Classic version. I'mlooking for ways to include custom fields into the URL of the images/buttons in the email marketing that are filled in the launch time.

I was able to find how to include the audience segments name in the URL, but still couldn't find how to include the campaign name and the launch date as a variable of the URL. For example: www.companyname.com/campaign/&utm_campaign=<campaign_name>_DT<launch_date>;

I know this must be simple, but since I can't find anywhere, I'm asking for your help.

1 Accepted Solution
KelFromLondon
Correct answer by
Level 2
Level 2

Hi Romulo,

The first method that comes to mind is by adding this tag to populate the date

<%= formatDate(new Date(), "%4Y%2M%2D") %> will output 20190423

View solution in original post

4 Replies
KelFromLondon
Level 2
Level 2

Hey,

I'm ot certain what you mean by launch date, but I believe you'll be able to access the name of the campaign by using the following delivery variable.

<%= delivery.operation.label %>

ramon_bisswanger
Employee
Employee

There are 2 ways:

2nd option has the advantage that it's done for all tracked links automatically.

For option 1, author has to take care

romulocostacurt
Level 2
Level 2

Thanks! This solves part 1 of my problem!

By launch date I refer to the specific date the email is sent. For example, if I send an email today, I'd like to have in the URL something like &utm_campaign=campaignname_DT20190401 (in this case the format would be YYYYMMDD). Is it possible with another tag?

Best, Romulo

KelFromLondon
Correct answer by
Level 2
Level 2

Hi Romulo,

The first method that comes to mind is by adding this tag to populate the date

<%= formatDate(new Date(), "%4Y%2M%2D") %> will output 20190423

View solution in original post