User Tools

Site Tools


contact_widgets

This is an old revision of the document!


This page has been moved, the new location is https://support.realgeeks.com/hc/en-us/articles/360043677113.

Purpose

We know our customers are often power users that have several websites, and not all of them are powered by Real Geeks (yet!)

Customers would often ask for the ability to send leads from their other sites into our lead manager. So, we have created a widget that will let you embed contact links in your other sites that will send contact requests into the lead manager.

This widget uses the asynchronous method of javascript, similar to the new method that google analytics uses. This ensures that our widget will not impact the speed of your own site.

Adding a contact widget to your external Site

Paste the following code just before the </head> tag on your site. You will need to replace WWW.YOURSITEHERE.COM with the URL of your Real Geeks site.:

<script type="text/javascript">
  var _rgq = _rgq || [];
  _rgq.push(['_setSecure', true]);
  _rgq.push(['_setDomain','WWW.YOURSITEHERE.COM']);
  (function() {
     var rg = document.createElement('script'); rg.type = 'text/javascript'; rg.async = true;
     rg.src = '//widgets.realgeeks.com/static/js/rg.min.js';
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rg, s);
   })();
</script>

The line, _rgq.push(['_popupContact']);_rgq.push(['_resize',500,800]), needs to be added only if your site uses SSL (has https in the site url).

Now, you can use the following javascript trigger anywhere on your page to open the contact form:

_rgq.push(['_popupContact']);_rgq.push(['_resize',500,800]);

For example, here is a button that pops up the contact form:

<button onclick="_rgq.push(['_popupContact']);_rgq.push(['_resize',500,800])">Contact Us</button>

Demo

This is what it looks like (but you can style it however you want):

To learn how to add the contact us popup as a button on your real geeks site, click here.

contact_widgets.1590695358.txt.gz · Last modified: 2020/05/28 19:49 by michaels