I built a journey that sends an email. Inside the email there is a button that refers to a marketing page. When the contact visits the marketing page he is tracked by the journey. I need to recreate the same email button on a marketing page or with a power automate flow, and to be able to track contacts' visits. The assist edit function only works within the marketing email. How can I do? Thanks a lot!
for example:
origin button mail: href="{{msdyncrm_marketingpage(434aad1b-0a5b-eb11-a812-000d3aa9bc42).msdyncrm_full_page_url}}"
landing: https:.../?msdynttrid=MnZ8MHsVBNUw-2QGW5pDY2bnUC3Us2lcVY0To9zDe1w
Hi Simone,
Feel free to ask further information! :)
If you still have any doubt about the current topic, just keep discussion in the current thread.
(If you have new question and think that the current question is resolved, please kindly mark the answer as verified to close the thread.)
Hi Clofly,
Thank you for your reply.
The suggestions you gave me were very helpful :-)
Can I bother you again if I need further information? Thanks a lot!
Best Regards,
Simone Colaci
Hi Simone,
Just embed following code into header tag:(Including the library from CloudFlare.)
However, please notice that CRUD operations are actually not supported on marketing page, here is how does the personalized page content feature work:
After contact submits the marketing form, the cookie to identify the person will always be stored in contact's browser regardless of "Remember me" field is checked.
The difference is that if the field is checked, some of his/her information will be accessible for us to read using JavaScript(PPC script).
Therefore, token is not required, we just need consent from contact.
Regards,
Clofly
Thanks a lot Clofly! This seems to me an excellent solution. How can I import jQuery library to marketing pages (or even PoweApps Portal pages) to perform CRUD operations on the contact entity? Could you kindly post me some examples? Do I need tokens to access the data?
Hi Simone,
There is a workaround: inject link value to button of page dynamically using "Personalized Page Content" feature,(JavaScript) but contacts need to mark "Remember me" check box.(Their "Prefill marketing form" field is set to "Allow".)
https://docs.microsoft.com/en-us/dynamics365/marketing/personalized-page-content
After configuration, we embed the automatically generated code to our landing page and modify the code.
e.g: If first name of contact is Clofly, then change link of the button.(You could import jQuery library to marketing page to simplify code.)
If Clofly opens the form, the link of button will change.
While the link is same to others.
(He need to mark "Remember me" check box at first time submission to make sure his "Prefill marketing form" field is checked.)
Regards,
Clofly
Thanks Clofly for the quick reply. But this way I would get a static link, instead my goal is to get a dynamic link that changes when the contact changes.
Hi, Simone
As the assist edit function only works within the marketing email, it cannot be added into a marketing page directly.
However, you can get the exact URL from the email.
For example, here is the designer for an email.
1. Insert the URL you’d like to add into the email with the assist edit function.
2. Switch to the Preview tab.
You will see the exact URL shown in the Preview tab so you can select and copy it for other purposes.
Hope this helps.
Regards,
Clofly
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156