Skip to content

Instantly share code, notes, and snippets.

@markmarkoh
Created April 1, 2010 20:53
Show Gist options
  • Select an option

  • Save markmarkoh/352351 to your computer and use it in GitHub Desktop.

Select an option

Save markmarkoh/352351 to your computer and use it in GitHub Desktop.
//Generic Goal, such as User Registration, to be placed on a "thank you" page
p9.goal("TEST-TOKEN");
//User Registration with custom parameters, to be placed on a "thank you" page
p9.goal("TEST-TOKEN", { account_type: "premium" })
//Checkout via shopping cart with custom parameters, to be placed after the order is confirmed or on a "thank you" page
p9.goal("TEST-TOKEN", { num_items: 5, total_cost: 43.44, coupon_used: false});
//Page view with custom parameters
p9.goal("TEST-TOKEN", { type: "page view", registered: false, article_name: "High Fructose corn Syrup considered dangerous"});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment