Announcement

Collapse
No announcement yet.

Include Placeholder in Tracking-URL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Include Placeholder in Tracking-URL

    We'd need to pass the e-mail address of the mass mail recipient to the target URL, but still be able to track the click. Is this possible?

    We've tried to add a placeholder in the URL field (see screenshot attached), but it doesn't seem to work. Instead, the redirect leads to https://abc.com/?email=%7BContact.emailAddress%7D

    Thanks for you help.

  • #2
    It's not supported. You can modify the file application/Espo/Modules/Crm/EntryPoints/CampaignUrl.php to get urls wth email address.

    Comment


    • #3
      Thanks for the hint, that could work.
      How can I access the e-mail address of the target entity?

      I've tried the following but it wouldn't work:
      Code:
      header('Location: ' . $trackingUrl->get('url') . '?email=' . [B]$target->get('emailAddress'))[/B];

      Comment


      • #4
        UDPATE: It DID actually work, I just had some other buggy code to be removed. Thanks for your support, Yuri.

        Comment


        • #5
          I also recommend to put this customization to the custom folder.


          custom/Espo/Custom/EntryPoints/CampaignUrl.php

          Comment


          • #6
            Thanks for the hint. Since this is our first customisation, can you provide me with a quick tutorial?

            Comment


            • #7
              yuri wrote a correct path,
              here you can find the origin https://github.com/espocrm/espocrm/b...ampaignUrl.php
              Example #1 https://forum.espocrm.com/forum/deve...entity-via-get
              Example #2 https://forum.espocrm.com/forum/gene...ss-limitations

              Comment

              Working...
              X