Welcome to our Help Center

How to set up iframe deep linking

This article is relevant for the Storefront product only.


You will learn how to set up additional iframes to direct customers to specific parts, makes, VINs, and pages in the Revolution iframe. This is a great feature when you want customer to have the ease of purchasing products that are relevant to the page they are on. Follow the format below to setup deep linking on your website.

Note: You will need to incorporate your web design team to implement these changes.

 

This is what your iframe script should look like:

<div id="rp_frame_wrap" style="min-height: 600px;" data-rpid="test-part-website"></div>

<script type="text/javascript">

(function(d, s) {

var f = d.getElementsByTagName(s)[0];

var script = d.createElement(s);

script.src= '//s3.amazonaws.com/static.revolutionparts.com/rp_plugin.js';

script.async = true;

f.parentNode.insertBefore(script,f);

})(document, 'script');

</script>

 

Follow the format below to add an iframe to you page that will direct your customer to specific data queries. You can modify the <div ...></div> tags as follows:

Add ‘data-query’: This attribute can take any search, like a part number, a VIN, or a keyword. This will allow you to have an iframe that is specific to a keyword like “Jeep Cherokee Brakes. Examples below:

 

Iframe for “Water Pump”

<div id="rp_frame_wrap" style="min-height: 600px;" data-rpid=" test-part-website" data-query="water pump"></div>

 

Iframe for VIN number:

<div id="rp_frame_wrap" style="min-height: 600px;" data-rpid=" test-part-website" data-query="V0002051"></div>

 

Iframe for “Jeep Cherokee Brakes”

<div id="rp_frame_wrap" style="min-height: 600px;" data-rpid=" test-part-website" data-query="jeep cherokee brakes"></div>

Add 'data-page': This attribute can take on any of the following values to land the customer directly on those pages: login, register, contact_us, policies, order_status

For example:

<div id="rp_frame_wrap" style="min-height: 600px;" data-rpid=" test-part-website" data-page="login"></div>

 

For further questions please contact our Technical Support team at support@revolutionparts.com or call at 480-779-7278.




If you have any questions, feel free to reach out to us by emailing
support@revolutionparts.com or calling 480-779-7278!

RevolutionParts Logo
Powered by Zendesk