Forum Discussion
Mattpx - You can add this script on the success page itself. Does your community use the SSO or Lithium login? If it is lithium login, you can check the URL to see if the registration is successful or not. If SSO, you must be redirecting the users back to the community, hence you can check the params from URL and add your tracking code inside a condition. The implementation will be same in both the cases basically.
e.g.
<#if http.request.url?contains("Success")>
//Your code goes here
</#if>
I hope this helps.
Hello VarunGrazitti
Thank you for the answer. The community uses the Lithium login, I first tried what you suggested with the url but I couldn't find anything in the admin to edit/add an success url/page, that's why I ended up adding the JS code on the registration page itself. Unfortunately there is no parameter in the url that I can use to "detect" a success:
Registration URL(s): https://community.mydomain.com/t5/user/userregistrationpage?dest_url=https%3A%2F%2Fcommunity.mydomain.com%2F or https://community.mydomain.com/t5/user/userregistrationpage
After registration: https://community.mydomain.com/
Is there something I can do with FreeMarker?
<#if "user first login" >
// Tracking code here
</#if>
Thank you,
Matt
- VarunGrazitti8 years agoBossMattpx - Sure, you can see if the user login count is 1.
Related Content
- 7 years ago
- 5 years ago