Create profile script for visitors to a page | Community
Skip to main content
New Participant
September 4, 2023
Solved

Create profile script for visitors to a page

  • September 4, 2023
  • 2 replies
  • 1950 views

Hello, I am trying to create a segment with the help of a profile script. What I want to achieve is to create the profile for the people who visited a url of my site. To achieve this they told me that I must create a profile script that profile script will set the parameter "user.inversionesVisit = true" for any user who visits my URL. But I haven't created script profiles before. Does anyone know how this is done?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaureshk_Kodag

if(page.url.indexOf('us/en/services/tax/tax-function-future.html')!=-1){
inversionesVisit = "true";
}

 

@gabnolasco you can use the above code inside profile script to create a segment. just change the url with your page url.

2 replies

Gaureshk_Kodag
Gaureshk_KodagAccepted solution
Employee
September 11, 2023

if(page.url.indexOf('us/en/services/tax/tax-function-future.html')!=-1){
inversionesVisit = "true";
}

 

@gabnolasco you can use the above code inside profile script to create a segment. just change the url with your page url.

alexbishop
Employee
September 5, 2023

This video provides a very good walkthrough of how to create profile scripts