Support

WordPress - Using the Segment plugin

Note: The Ecommerce dashboard is now only included with our Enterprise Plans. Current Ecommerce customers can continue to use their dashboards with their existing plans. New customers should contact russell@gosquared.com to learn more about our enterprise pricing options.


Instructions

These instructions are for connecting your Wordpress site to GoSquared using the 3rd party data connection service, Segment.

It supports GoSquared Analytics, Inbox and Contacts out of the box.

Note: most users will be better using the official Wordpress plugin without the need for Segment.

What is Segment?

Segment is a customer data hub for easily managing multiple services running on your website. Its a great way to glue different services together and is currently our most reliable method for WordPress tracking.

Do I need to pay extra to use Segment?

No. GoSquared is part of Segment's free 'Developer' tier. If you have less than 1000 unique visitors a month (what Segment calls MTUs), you wont have to pay Segment anything extra!

Setting up WordPress with Segment

  1. Install the Segment plugin on your WordPress site.

  2. If you haven't already, sign up for a free Segment account.

  3. Follow the instructions on Segment's website to create a new project for your store/blog. Open the project and click 'Project Keys' in the sidebar.

    Copy your Write Key and paste it into your analytics settings by going to Settings > Analytics in your WordPress admin.

  4. Turn off 'Track Pages' (GoSquared already tracks pageviews, leaving this on may create duplicates).

  5. Turn on 'Track Logins' (this enables Contacts).

    Segment WordPress Settings

  6. Segment is now installed on your site. Next we need to get Segment talking to GoSquared.

  7. Log into your GoSquared account and click 'Install Segment'

  8. If prompted, login to your Segment account. Then select your store project from the dropdown menu and click 'Send Data'.

  9. GoSquared will verify your data is tracking (try refreshing after a few minutes if it doesn't work).

  10. That's it, you're done! No more coding or tweaking required!


The Segment plugin automatically collects some important Ecommerce events. No code is needed for it to work.

Here’s a list of events it collects automatically:

  • Viewed Category Page
  • Viewed Product (with product details as properties)
  • Added Product (with product details as properties)
  • Removed Product (with product details as properties)
  • Viewed Cart Page
  • Completed Order (with order and product details as properties)

Check out the docs for the standard plugin for more information.