Include Placeholder in Tracking-URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tobias
    Senior Member
    • May 2016
    • 229

    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.
  • yuri
    Member
    • Mar 2014
    • 8415

    #2
    It's not supported. You can modify the file application/Espo/Modules/Crm/EntryPoints/CampaignUrl.php to get urls wth email address.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • tobias
      Senior Member
      • May 2016
      • 229

      #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

      • tobias
        Senior Member
        • May 2016
        • 229

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

        Comment

        • yuri
          Member
          • Mar 2014
          • 8415

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


          custom/Espo/Custom/EntryPoints/CampaignUrl.php
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • tobias
            Senior Member
            • May 2016
            • 229

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

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #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...