Submit a request

Rule Engine - Visitor Traffic & Analytic Rules




  • Avatar
    Walter Landman

    What is the lifetime of this marking?  Suppose I visit the site today from a search engine.  I close my browser and come back in two weeks.  Will my 2nd visit still be considered as coming from a search engine or will it be considered direct?  

  • Avatar
    Brandon Young

    Any more information on the question above would be greatly appreciated!

  • Avatar
    AmeriCommerce Developer

    Thanks for the question, Walter.

    The referring domain is session based. In other words, the 2nd visit will have the same referrer as the initial visit if the session is the same; if the 2nd visit is a different session, than the referring domain could be different. The server-side lifetime of visitor sessions is by default 12 months, but this can be changed in Settings > Security > Data Retention. Keep in mind a new session will be created if the customer uses a different device, different browser, etc.

    Hope that answers your question.

    --Online Store Support

  • Avatar
    Brandon Young

    So I'm working on Analytical rule 260 [ppc] Google Adwords and I want to change it so that I can see what keyword was clicked on. In my AdWords account I have set up a custom parameter in the URL to be keyword={keyword} which puts the keyword in the URL. How can I set up a rule to set the ppc keyword to this value? Or would it just be easier for me to write a custom script?

  • Avatar
    AmeriCommerce Developer


    You can set the session's PPC keyword with an analytic rule action (as you've probably noticed), but I'm not sure there's a way to pull in the the value of a specific query string from the URL (like your keyword parameter).

    There is a merge code that you can try: ##QUERYSTRING[name]##- Displays the value from the query string and puts it in place of this merge code. For example, you would paste this into the `Set PPC Keyword` action: ##QUERYSTRING[keyword]##.

    If that doesn't work, you'll need a custom script.

    Hope that helps!

    SPOS Support

  • Avatar
    Brandon Young


    Thanks I'll give it a try and see if it works. I'll post back here if it works so everyone else can see.

Please sign in to leave a comment.

We're Here To Help

Standard Support Hours: Monday-Friday 8AM-6PM CST
Looking for Premium Support? Just ask!

Speak to a live person
1 (800) 936-9006
Submit A Support Ticket
Submit Your Ticket Here