Title: Gravity Forms / WooCommerce Recently Viewed Products
Author: Mike Martel
Published: <strong>May 12, 2014</strong>
Last modified: May 21, 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/gravity-forms-recently-viewed-products.
svg)

# Gravity Forms / WooCommerce Recently Viewed Products

 By [Mike Martel](https://profiles.wordpress.org/mike_cowobo/)

[Download](https://downloads.wordpress.org/plugin/gravity-forms-recently-viewed-products.1.1.zip)

 * [Details](https://test.wordpress.org/plugins/gravity-forms-recently-viewed-products/#description)
 * [Reviews](https://test.wordpress.org/plugins/gravity-forms-recently-viewed-products/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/gravity-forms-recently-viewed-products/#installation)
 * [Development](https://test.wordpress.org/plugins/gravity-forms-recently-viewed-products/#developers)

 [Support](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/)

## Description

This plugin automatically adds Recently Viewed Products from WooCommerce to your
form submissions, giving you insight into what products your visitors were interested
in before sending their enquiry.

Simply install the plugin and activate it. If both WooCommerce and Gravity Forms
are set up on your website, you will start seeing the recently viewed products of
your visitors in your form entry screen. To also add the data to your emails, use
the `{recently_viewed_products}` merge tag.

**Please note:** This plugin does _not_ add any extra tracking to your website. 
If you have WooCommerce installed, it will automatically track recently viewed products
for each visitor in a cookie which this plugin uses to add to each form submission.
When you use this plugin, make sure your privacy policy is clear on how you are 
using your visitors’ click stream information.

### For developers

This plugin is very extensible and makes it easy to implement different ecommerce
backends or alternative tracking mechanisms altogether. To modify the tracking, 
either make a child class of `GF_Recently_Viewed_Products` and override the `_get_current_recently_viewed_products`
method, or use the following filters:

**For use with WooCommerce:**

 * `wc_gf_recently_viewed_product_ids` (array) List of post ids
 * `wc_gf_recently_viewed_products_query` (array) Query for get_posts (use to change
   the post type)
 * `wc_gf_recently_viewed_products` (array) List of posts

**Without WooCommerce: (make sure to init the `GF_Recently_Viewed_Products` class
yourself)**

 * `gform_recently_viewed_product_ids` (array) List of post ids
 * `gform_recently_viewed_products_query` (array) Query for get_posts (use to change
   the post type)
 * `gform_recently_viewed_products` (array) List of posts

If you extend this plugin to

## Screenshots

 * [[
 * Recently viewed products in Gravity Forms entry
 * [[
 * Gravity Forms email with Recently Viewed Products using merge tag

## Installation

Install the plugin the normal way and activate it. If both WooCommerce and Gravity
Forms are set up on your website, you will start seeing the recently viewed products
of your visitors in your form entry screen. To also add the data to your emails,
use the `{recently_viewed_products}` merge tag.

## FAQ

None yet.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Gravity Forms / WooCommerce Recently Viewed Products” is open source software. 
The following people have contributed to this plugin.

Contributors

 *   [ Mike Martel ](https://profiles.wordpress.org/mike_cowobo/)

[Translate “Gravity Forms / WooCommerce Recently Viewed Products” into your language.](https://translate.wordpress.org/projects/wp-plugins/gravity-forms-recently-viewed-products)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/gravity-forms-recently-viewed-products/),
check out the [SVN repository](https://plugins.svn.wordpress.org/gravity-forms-recently-viewed-products/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/gravity-forms-recently-viewed-products/)
by [RSS](https://plugins.trac.wordpress.org/log/gravity-forms-recently-viewed-products/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1

 * Fix bug in merge tag when no data is available

#### 1.0

 * Release to WP.org

#### 0.9

 * Pre-release on GitHub

## Meta

 *  Version **1.1**
 *  Last updated **12 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.8 or higher **
 *  Tested up to **3.9.40**
 *  Language
 * [English (US)](https://wordpress.org/plugins/gravity-forms-recently-viewed-products/)
 * Tags
 * [forms](https://test.wordpress.org/plugins/tags/forms/)[gravity forms](https://test.wordpress.org/plugins/tags/gravity-forms/)
   [recent products](https://test.wordpress.org/plugins/tags/recent-products/)[woocommerce](https://test.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://test.wordpress.org/plugins/gravity-forms-recently-viewed-products/advanced/)

## Ratings

 1 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/reviews/)

## Contributors

 *   [ Mike Martel ](https://profiles.wordpress.org/mike_cowobo/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/gravity-forms-recently-viewed-products/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://trenvo.com/)