If you use WooCommerce (WordPress), please follow these instructions:

  1. In your WordPress dashboard, hover over Plugins then click Add New.
  2. Search for VoyageSMS
  3. Click Install Now under “VoyageSMS” and then activate the plugin.
  4. Hover over Settings then click Voyage Settings.
  5. Add your Public GUID provided by your Voyage account manager.
  6. Click Save Changes.

Alternative way for WooCommerce (WordPress):

  1. In your WordPress dashboard, hover Plugins then, click Add New.
  2. Search for Code Snippets.
  3. Click Install Now under “Code Snippets” and then activate the plugin.
  4. From WordPress dashboard menu hover Snippets then, click Add New.
  5. Give it a title, paste the code snippet (shown below) in the Code text area. Replace [CLIENT ID] with the client ID provided by your Voyage account manager.
  6. Click Activate.
<?php
add_action( 'woocommerce_thankyou', 'voyage_purchase' );
function voyage_purchase( $order_id ) {
	$order = wc_get_order( $order_id );
?>
  <script type="text/javascript">
  /* <![CDATA[ */
  (function(){if(window.voyage)return;window.voyage={q:[]};var fns=["init", "track"];
  for(var i=0;i<fns.length;i++){(function(fn){window.voyage[fn]=function(){
  this.q.push([fn,arguments]);}})(fns[i])}})();voyage.init("[CLIENT ID]", { popup:   true});
  /* ]]> */
  </script>
  <script async src="<https://assets.voyagetext.com/voyage.production.js>"></script>
    <script type="text/javascript">
      voyage.track("Purchase", { amountCents: <?php echo $order->get_total()*100; ?> });
    </script>
<?php