Publisher Web Integration

Please Note: This documentation references invoca.net in the Web Integration examples below. However, previous installations referencing ringrevenue.com are still valid.

With the publisher web integration code in place, you can dynamically display multiple promo numbers belonging to different campaigns or even different publishers (e.g., sub affiliates). You are also able to specify which promo number(s) to display. Any new numbers can be assigned and displayed on the fly. It’s also easy to track SEM performance. With the RingPool feature enabled, set up search campaigns to redirect to your landing page and search promo numbers are automatically displayed on the landing page. You can then view reports that show the calls to a search promo number along with the search engine and the keywords that drove the call.

The following article assumes the web traffic is going to the publisher’s landing page and provides instructions on how the publisher can integrate the landing page.

Installation instructions from a Publisher account

  1. Access the Publisher Web Integration Code from the Campaign’s Summary tab.

  2. Under the Landing Pages and Applications section, click Get Code.

    Note the ppc_id of your campaign. The ppc_id uniquely identifies the campaign and references the Publisher ID and Advertiser Campaign ID.

    In the example above, the Publisher ID = 170981 and the Advertiser Campaign ID = 50979.

  3. Place the publisher web integration code on the campaign landing page by inserting it in the footer just above the </body> tag. This step only has to be done once. See examples below.

  4. Flag each HTML element on your page where a number should be inserted. Each instance of this code signals to our code that a promo number should be displayed there. Wrap an HTML element (e.g. a <span> tag) around each number with the following two classes, ppc_integration and ppc_id_xxx_yyy (where xxx = Publisher ID and yyy = Advertiser Campaign ID).

    Inside the container, create a <span> with a CSS class ppc_number, which contains the promo number.

    Example:

    <span class="ppc_integration ppc_id_xxx_yyy">
    
          <span class="ppc_number"> YOUR NUMBER </span>
    
    </span>
    

    (where xxx = Publisher ID, and yyy =Advertiser Campaign ID)

    (Optional) You can add the class ppc_link which replaces the link with an Invoca enabled link to redirect to the advertiser landing page and display your promo number if the advertiser is web integrated.

    Example:

    <span class="ppc_integration ppc_id_x_y">
    
      <a href="http://yourlink.com" class="ppc_link">
    
        <span class="ppc_number"> YOUR NUMBER </span>
    
      </a>
    
    </span>
    

Mobile phone experience

By default, when your page is visited on a mobile phone browser, your promo numbers are wrapped in a tel link so that when clicked they launch the phone’s dialer to place a call. If you want to launch the dialer and also redirect in the background to the advertiser’s landing page, see example 4 below. If you just want to go to the advertiser’s landing page on the click and not launch the dialer, see example 3 below.

To disable the default experience for mobile phones, add a ppc_no_tel class to your DOM element that specified the ppc_number.

Example:

<span class="ppc_integration ppc_id_xxx_yyy">

  <span class="ppc_number ppc_no_tel"> YOUR NUMBER </span>

</span>

Example 1: Dynamically Displaying One Promo Number

This example maps a single number on to a landing page. The ppc_id_xxx_yyy is unique for each campaign and is found on the Campaign’s Summary tab.

<html>
  <head>
    <title>Publisher Landing Page</title>
  </head>

  <body>
   <br><br><br>
   <center>
    <table border=1>
      <tr><td>
        Call Campaign A:
        <span class="ppc_integration ppc_id_xxx_yyy">
           <span class="ppc_number"> 1-800-555-1234 </span>
        </span>
      </td></tr>
    </table>
    <br><br><br>

    <div class="content">
        Here is the content of your website.
    </div>

    </center>
    <!-- Omit http from path to ensure protocol is same as current request -->
    <script src="//js0.invoca.net/0/publisher_integration.js"></script>
    <script>
         Invoca.affiliate_integration( );
    </script>
  </body>
</html>

You will notice that the number on the webpage is not the same as the highlighted number 1-800-555-1234 in the source code. To display the same promo number multiple times on the page, copy and paste the highlighted code to different areas of the source code.

Example 6: Display Multiple Promo Numbers

This example shows how to dynamically display promo numbers for multiple campaigns on the same landing page. The different numbers do not have to belong to the same publisher which means users with multiple publisher accounts could use the same landing page for campaigns across different networks.

The ppc_id_xxx_yyy is unique for each campaign and is found on the Campaign’s Summary tab.

<html>
  <head>
    <title>Publisher Landing Page</title>
  </head>

  <body>
   <br><br><br>
   <center>
    <table width=600 border=1>
      <tr><td><br>
        Call Campaign A:
        <span class="ppc_integration ppc_id_xx1_yy1">
           <span class="ppc_number"> xxx-xxx-xxxx </span>
        </span><br>
      </td>

      <td><br>
        Call Campaign B:
        <span class="ppc_integration ppc_id_xx2_yy2">
         <span class="ppc_number"> XXX-XXX-XXXX </span>
        </span><br>
      </td></tr>
    </table>
    <br><br><br>

    <div class="content">
        Here is the content of your website.
    </div>

    </center>
    <!-- Omit http from path to ensure protocol is same as current request -->
    <script src="//js0.invoca.net/4/publisher_integration.js"></script>
    <script>
         Invoca.affiliate_integration( );
    </script>
  </body>
</html>

The image below is a screenshot of the webpage produced by HTML source code from this example. Notice that the promo number for campaign B is not displayed. This can be caused by a variety of reasons:

  1. The ppc_id_xxx_yyy is incorrect.
  2. The publisher is not approved to the campaign.
  3. The campaign is no longer active.