Campaign tags and filters

There are certain tags which are associated with Campaigns.

TagRequired
[UNSUBSCRIBE_URL]YES
[COMPANY_FULL_ADDRESS]YES
[UPDATE_PROFILE_URL]NO
[WEB_VERSION_URL]NO
[CAMPAIGN_URL]NO
[LIST_NAME]NO
[LIST_SUBJECT]NO
[LIST_DESCRIPTION]NO
[LIST_FROM_NAME]NO
[CURRENT_YEAR]NO
[CURRENT_MONTH]NO
[CURRENT_DAY]NO
[CURRENT_DATE]NO
[COMPANY_NAME]NO
[COMPANY_ADDRESS_1]NO
[COMPANY_ADDRESS_2]NO
[COMPANY_CITY]NO
[COMPANY_ZONE]NO
[COMPANY_ZIP]NO
[COMPANY_COUNTRY]NO
[COMPANY_PHONE]NO
[CAMPAIGN_SUBJECT]NO
[CAMPAIGN_TO_NAME]NO
[CAMPAIGN_FROM_NAME]NO
[CAMPAIGN_REPLY_TO]NO
[CAMPAIGN_UID]NO
[SUBSCRIBER_UID]NO
[EMAIL]NO
[FNAME]NO
[LNAME]NO

You can filter your campaign statistics according to each of the above tags. Such filters can also be used to transform your tags in a certain manner. Let us learn how to do it with an example. Say you want to embed a link to twitter in your campaign. Let’s see how we can proceed on this now,

Using only the tags you would embed it like:

https://twitter.com/intent/tweet?text=[CAMPAIGN_SUBJECT]&url=[CAMPAIGN_URL]

Here arises a small problem. Twitter expects it’s arguments to be encoded. This means it expects the following,

https://twitter.com/intent/tweet?text=my%20super%20campaign&url=http%3A%2F%2Fwww.domain.com%2Fcampaigns%2F1cart129djat3

Instead what our previous statement would give it is this,

https://twitter.com/intent/tweet?text=my super campaign&url=http://www.domain.com/campaigns/1cart129djat3

To overcome this very aspect, we use filters over our tags.

https://twitter.com/intent/tweet?text=[CAMPAIGN_SUBJECT:filter:urlencode]&url=[CAMPAIGN_URL:filter:urlencode]

This may sound amazing but it’s not the only thing there is, avenues exist for even more customization with tags and subsequent deployment. Say, we need to start our twitter texts with an uppercase letter and make the following letters lowercase.
In order to accomplish this, we can apply multiple filters over the same tag, which will be separated by a perpendicular slash.

For instance:

https://twitter.com/intent/tweet?text=[CAMPAIGN_SUBJECT:filter:lowercase|ucfirst|urlencode]&url=[CAMPAIGN_URL:filter:urlencode]

Important thing here not note is that multiple filters should be added in the order which they are supposed to be applied.

Following is the list of filters that we provide with Adcrux. We will be adding more filters and features in the future as we are always striving to make Adcrux better today than it was yesterday.

urlencodewill urlencode your tag
rawurlencodewill rawurlencode your url
htmlencodewill convert html tags into their entities
trimwill trim the white spaces from begining and end of your tag
uppercasewill transform your tag in uppercase only chars
lowercasewill transform your tag in lowercase only chars
ucwordswill capitalize each first letter from your tag content
ucfirstwill capitalize only the first letter of your tag
reversewill reverse your tag content

Have any more doubts, send us an email at [email protected] and we’ll get in touch!