Cómo usar Etiquetas de campaña y filtros Avanzado


Al enviar una campaña, puede utilizar una serie de etiquetas y filtros personalizados.
Las etiquetas más comunes se enumeran a continuación:

 
Tag Required
[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
 
Ahora, cada una de las etiquetas anteriores puede recibir un conjunto de filtros.
Los filtros son una forma sencilla de transformar la etiqueta de una manera u otra, por ejemplo, es posible que desee incorporar un vínculo de uso compartido a twitter en su campaña, por ejemplo, la URL de la campaña.
Utilizando sólo las etiquetas que se inserta como:

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

Pero hay un problema, porque twitter espera que tus argumentos sean codificados por URL, y por eso, quiero decir que twitter espera obtener

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

Pero en su lugar se obtendrá https://twitter.com/intent/tweet?text=my super campaign&url=http://www.domain.com/campaigns/1cart129djat3

Con el fin de superar este problema, vamos a aplicar filtros sobre nuestras etiquetas, por lo tanto, el url de twitter se convierte en:

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

¿Te parece simple? Podemos hacer aún más, digamos que queremos asegurarnos de que nuestro texto de twitter comience con una letra mayúscula y el resto de las letras será en minúsculas.
Para lograr esto, podemos aplicar múltiples filtros (separados por un tubo) a la misma etiqueta, por ejemplo: 

https://twitter.com/intent/tweet?text=[CAMPAIGN_SUBJECT:filter:lowercase|ucfirst|urlencode]&url=[CAMPAIGN_URL:filter:urlencode]
Tenga en cuenta que el orden en el que agrega los filtros es el mismo que se aplican.

A continuación se muestra la lista completa de filtros, por ahora hay unos pocos, pero en el futuro el número podría aumentar.
 
urlencode will urlencode your tag
rawurlencode will rawurlencode your url
htmlencode will convert html tags into their entities
trim will trim the white spaces from begining and end of your tag
uppercase will transform your tag in uppercase only chars
lowercase will transform your tag in lowercase only chars
ucwords will capitalize each first letter from your tag content
ucfirst will capitalize only the first letter of your tag
reverse will reverse your tag content
 

Categorías: Informations