-
Notifications
You must be signed in to change notification settings - Fork 475
Incorrect Clickthrough URL #243
Comments
@JoshuaSlaven42 I'm having this issue as well, I can't use any templates that insert fields and track links. However, @QuincyLarson does it successfully in this video: https://www.youtube.com/watch?v=_7U03GVD4a8 So I'm not quite sure what the root cause is |
@AlexVipond It's my understanding of the regex expression used by mail-for-good as of issue creation that the line break you see in the video is what enables using both fields and links in the same message. Have you tried breaking field and link tracking apart into separate lines? |
@JoshuaSlaven42 Yes, my original message was something like
Typed directly into the WSIWYG editor, as seen in the video. I haven't tried it in plain text yet, or forcing line breaks with |
If I follow the format: It displays on my email like this: Instead of actually displaying a link. This is following the instructions given in the template creation page Has anyone else gotten this to work properly? |
Hi
I'm running into problems with the wrapLink function. I'm running MFG on windows and I wonder if the new line character may be in play?
Following the setup tutorial, this simple template
This produces some unexpected merge html. You can see the html has gotten into the url value and the link text contains part of the {{email}} expression.
<div>Hi <a href="http://localtest.me:8080/clickthrough?url=div><div><br></div><div>{test/http://www.google.com&trackingId=example-tracking-id">{email}}<</a></div>
Examining the wrapLink function in analytics.js, I wonder if replace /{(.+?)/(.+?)}/g is a bit naive? A simple template as follows incorrectly matches the handlebars expression as part of the tracking link.
The text was updated successfully, but these errors were encountered: