Magento Plugin [Deprecated]

Our Magento extension lets you send your ecommerce analytics data to any of our destinations without writing any code yourself. You can be up an running with a complete ecommerce tracking setup in minutes!

The extension automatically collects information about the customer, which pages they visit, which products they add and remove from their cart, and which orders they complete.

Deprecated

This guide is no longer maintained by Segment, and is considered deprecated. The information on this page may be out of date, and we recommend using guides maintained by the tool or partner organization.

The current version of this plugin should be free of bugs but any existing and future development will be paused for the time being. We recommend exploring and using third party alternatives.

Getting Started

The recommended way to install the Magento extension is via the Magento Connect marketplace:

  1. Inside your Magento Admin navigate to System > Magento Connect > Magento Connect Manager.
  2. Re-enter your login credentials.
  3. Under the Install New Extensions section, paste this key: http://connect20.magentocommerce.com/community/analytics
  4. Click the Install button, and the plugin should install automatically.
  5. Go back to your main Magento Admin, an navigate to System > Configuration.
  6. Choose the General > Analytics section from the sidebar.
  7. Expand the Segment section of the page, and paste in your source’s Write Key and click Save Config.

That’s it, you’re done! You’ll automatically be identifying customers and recording their actions as they move around your Magento store.

Now just turn on any of our destinations in Segment on your destinations page and we’ll start sending your data to them for you!

Common Questions

What customer information does it record automatically?

We automatically identify customers that are logged in to your Magento store with all of the information stored about them in the Magento database. This includes fields like first_name, last_name, email, gender, etc.

Which actions does it record automatically?

Just by installing the plugin, without touching any code, we’ll already be recording events when the customer visits your store’s pages, and when they perform certain Ecommerce-specific actions:

Viewed ProductWhen the customer views a product listing.
Viewed Product ReviewsWhen the customer views the reviews for a specific product.
Added ProductWhen the customer adds a product to their shopping cart.
Removed ProductWhen the customer removes a product from their shopping cart.
Reviewed ProductWhen the customer submits a review for a product.
Wishlisted ProductWhen the customer adds a product to their wishlist.
Order CompletedWhen the customer completes an order.
RegisterdWhen the customer signs up for an account.
Logged InWhen the customer logs in to their account.
Logged OutWhen the customer logs out of their account.
Searched ProductsWhen the customer searches for products.
Filtered ProductsWhen the customer filters product listings.
Subscribed NewsletterWhen the customer subscribes to your newsletter.

We also automatically add useful properties to the events when applicable. For example, the Order Completed event includes information about each product in the order, and the Searched Products events includes a query property of what the customer searched for.

Tracking Custom Events

For the most basic install, you’re already good to go. If you’d like to add your own custom tracking to your Magento store, you can add Javascript directly to any page.

Here’s the Javascript you would add to track a custom event:

analytics.track('Shared Product', {
  platform: 'Facebook',
  name: 'Diplomacy',
  category: 'Toys & Games',
  manufacturer: 'Avalon Hill',
  price: 22.68
});
event StringThe name of the event you’re tracking. We recommend using human-readable names like 'Played Song' or 'Updated Status'.
properties Object, optionalAn array of properties for the event. If the event was 'Shared Product', it might have properties like 'price', 'category', etc.

If you have any questions, or see anywhere we can improve our documentation, please let us know!