Visit Count Profile Script

Sep 11, 2017

This profile script counts the number of times that a user has visited your site. Note that it checks to make sure that this is a new session before incrementing the visitCount. This keeps the script from incrementing on each page view and only adds to the count once per visit on the first page of the session.

The name of this script would be visitCount.

if(user.sessionId!=user.getLocal('lastSessionId')) {
user.setLocal('lastSessionId', user.sessionId);
return (user.get('visitCount') || 0) + 1;
}
From $0 to Independent
Learn to grow a business from the ground up.
Get the Newsletter






Most Recent

  1. Create Adobe Target Audience From A Cookie
  2. Adobe Target Consultant
  3. Prioritize Your Theories
  4. Generate Theories
  5. What a 50 mile bike ride taught me Energy and Efficiency
  6. Perpetual Optimization Process
  7. How to Clear Adobe Target Previews
  8. Stop Using Profile Scripts
  9. Exit Pops that Generate Revenue
  10. Adobe Target Premium Training

Before You Go!

Tell me one thing that you would like to learn more about. I'll write about it and email you when I'm done.

Email Address (Optional but recommended)