User Tools

Site Tools


contact_widgets

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(['_setSecure', true]);, 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']);

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

<button onclick="_rgq.push(['_popupContact'])">Contact Us</button>

Demo

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

contact_widgets.txt · Last modified: 2018/02/15 19:56 by brittany