Track user and their keyword coming through search engines

Ashton Khizr asked on April 24, 2017 20:50

I want to create contact group around visitors coming through search engines. Also want to track what keyword they typed in in order to personalize the page.

Any suggestion ?

Recent Answers


Rui Wang answered on April 24, 2017 23:10 (last edited on April 24, 2017 23:16)

You can setup condition based Contact group and use rules like contact from from URL like "google.com" to add contacts to the group.

The problem for your second request is that most of the major search engines like Google and Bing don't provide the keyword people searched any more for years now. So you cannot use search engine keywords for that. However, if you do have onsite search, that's been tracked within CMS, and you can use that for personalization.

0 votesVote for this answer Mark as a Correct answer

Ashton Khizr answered on April 25, 2017 13:44

Thanks Wang, but I couldnt find a rule like that.

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on April 25, 2017 16:21 (last edited on April 25, 2017 16:22)

Sorry, you should use this rule

"Contact has done the following activities in the last X days", and set the activities to "External Search". You won't get the keyword for what they search form the major search engines, but at least the activity of external search and land on your page would be tracked.

0 votesVote for this answer Mark as a Correct answer

Ashton Khizr answered on April 27, 2017 20:35

Is the following macro code correct it is not returning any contact at them moment even though I can see activities as "externalsearch" and there are keywords as well ?

"((Contact.DidActivities("externalsearch", ToInt(0), false)) && (Contact.Activities.Columns.ActivityTitle.Contains("medical")))"

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on April 28, 2017 16:12

I'm pretty sure about the first part. (Contact.DidActivities("externalsearch", ToInt(0), false))

Not 100% about the second as I don't have the data to test it with. So you should try with just the first part first to see if you can get a list of contacts. Then the second part.

0 votesVote for this answer Mark as a Correct answer

Ashton Khizr answered on May 8, 2017 22:33

if we have a PPC account and of course have keywords. Can we some how track those users based on Keywords ?

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on May 8, 2017 22:38

You will have to test and see as I can't guess if the PPC account will pass over the keyword to CMS or not.

0 votesVote for this answer Mark as a Correct answer

Ashton Khizr answered on May 12, 2017 17:31

I think this would be irrelevant but just want to know if there is a way to build macros then contact groups based on different URL query string values ?

Why I want to do that is because I want to track traffic from adwords and then assign visitors to specific contact group based on query-sting value

0 votesVote for this answer Mark as a Correct answer

Ashton Khizr answered on May 14, 2017 23:23

any one ?

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on May 15, 2017 16:28 (last edited on December 10, 2019 02:30)

Hi Ashton, you did post this late Friday and I don't think anyone is active over the weekend :)

You don't need to build a custom macro to get the query string from URL. Instead of using the rule wizard, use the CODE tab to write macro to get query string.

For example, on pages with URLs like /Home.aspx?keyword=kentico, {% keyword%} resolves into 10. Alternatively, you can get the values of query string parameters inside standard macros: {% QueryString.keyword |(identity)GlobalAdministrator%}

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.