API Questions on Kentico API.
Version 6.x > API > newsletter tracking View modes: 
User avatar
Member
Member
ngardner-mrpricegroup - 10/15/2012 6:21:43 AM
   
newsletter tracking
Only some links in our newsletters get the tracking code including the link guid - not sure why this would be happening? any suggestions why some links are getting the tracking and not others???

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 10/15/2012 10:48:21 AM
   
RE:newsletter tracking
Hi,

Could you please check your E-mail tracking settings?

Please, read the note at the end of the article - Excluding links from tracking and check the source code of your newsletters.

Best regards,
Martin Danko

User avatar
Member
Member
mriekert-mrpricegroup - 10/17/2012 4:30:19 AM
   
RE:newsletter tracking
Hi there,

Nikki and I are working on this together. We have got all of our email tracking settings set up correctly as the majority of the links on a specific mail show the redirect link with the linkguid (and the tracking is showing) but some links just don't have the redirect url wrapper (most of the header and footer links it seems). Why would some links get wrapped and some not - within the same mail. We havent got the tracking=false included anywhere.
EDIT:
We have found that sometimes Kentico converts the '&' in the tracking code to &amp and this breaks our links and tracking.

eg. <a href="http://www.mrpricehome.co.za/?utm_campaign=love_rsa_&utm_medium=email&utm_source=home">

Thanks,
Mandy

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 10/20/2012 3:54:46 PM
   
RE:newsletter tracking
Hi Mandy,

1. Showing '&' in the URLs is a general problem. There are a lot of articles about it:
a) URL encoding
b) Problem with & in a url string
c) Reference urlencode

If you want to encode & in your URLs I would recommend you to replace it with '%26'
For example, your link:
<a href="http://www.mrpricehome.co.za/?utm_campaign=love_rsa_&utm_medium=email&utm_source=home">

should be encoded into:
<a href="http://www.mrpricehome.co.za/?utm_campaign=love_rsa_%26utm_medium=email%26utm_source=home">

2. Explanation: Certain characters have special meanings when they are found in a URL, so they cannot be used in values that determine the path to pages (i.e. document aliases and URL paths). By default, the following characters are forbidden: \/:*?"<>|&%.'#[]+=„“ and the space character.

So.. the other way is to change the settings in the web.config:
Take a look at the DevGuide: URL format and configuration and Web.config parameters - section "Forbidden character replacement in URLs".
Try to remove the '&' character the list of forbidden characters. It should fix your problem.

Best regards,
Martin Danko