Ammoseek Tracking Program - Analytics

Liquid error: undefined method `name' for nil:NilClass

The purpose of this program is to help keep track of a sale generated by Ammo Seek in order to calculate teh fee rate. These are the setup details for using the AmmoSeek-managed affiliate program. 


Instructions for setup in coreFORCE will be included below under Section 2.


SECTION 1: AMMOSEEK INSTRUCTIONS


(1) Clicks tracking
You should put this clicks tracking code (verbatim) into EVERY page that will be the target of affiliate links. The best practice is to put it somewhere into the footer of your page so it exists on all pages of your site. If you use a website content management system, this should guarantee that the tracking code will be executed on every page.

<script type="text/javascript" id="pap_x2s6df8d" src="https://ammoseek.postaffiliatepro.com/scripts/gkm6jmxvuh2"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('8e170a55');
PostAffTracker.setParamNameUserId('asaid');
try {
PostAffTracker.track();
} catch (err) { }
</script>

(2) Sales tracking
Open your order confirmation or "thank you for order" page code, and put the following code somewhere into the page where the parameters in setTotalCost() and setOrderID() should be automatically replaced with matching values for the particular confirmed order.

<script type="text/javascript" id="pap_x2s6df8d" src="https://ammoseek.postaffiliatepro.com/scripts/gkm6jmxvuh2"></script>

<script type="text/javascript">
    PostAffTracker.setAccountId('8e170a55');

    var sale = PostAffTracker.createSale();
    sale.setTotalCost('120.50');
    sale.setOrderID('ORD_12345XYZ');
    
   PostAffTracker.register();
</script> 

Replace the example values in parentheses/quotes ('120.50') and ('ORD_12345XYZ') in the code above with parameters/variables that provide:

TotalCost  - price of the order minus shipping.
OrderID - your unique generated order ID to cross-check/track the sale.

Once these have been put in place, please let us (AmmoSeek) know so we can test/verify things are working properly.



SECTION 2: SETUP INSTRUCTIONS WITHIN COREFORCE



(1) Clicks tracking


As with any analytics, these will be setup by going to Templates > Analytics Code. If you already have pre-existing analytics, you will want to open that record and add the script below any existing scripts. Do not attempt to insert the script inside of a pre-existing script code/ Script code will always start with <script> and ends with </script>. You can find the script under "Section 1: AmmoSeek Instructions - (1) Clicks Tracking" above.

If you need or would like assistance with this step, please submit a ticket at help.coreware.com or simply create a ticket by emailing support@coreware.com and we would be happy to assist you with this.



(2) Sales tracking


For this step, you will need to create or edit the fragment with the fragment code "RETAIL_STORE_ORDER_RESPONSE." This can be created fresh from within Website > Fragments or you can go to Orders > Setup, go to the fragments tab, search "order response" and select from the dropdown to customize that fragment and then click save in the top left corner. 


If this fragment is already created, it will let you know that it is already created and give you a link to "Click here to edit it."


Once you have the fragment open for editing, you will need to paste in the script provided by AmmoSeek instructions under "Section 1: AmmoSeek Instructions - (2) Sales Tracking" and then edit it as follows with the underlined parameters.


    sale.setTotalCost(orderData.orderTotal);

    sale.setOrderID(orderData.orderId);


Important: Do NOT alter the fragment code or these analytics will not work.


SECTION 3: CONCLUSION


At this point, everything should be set up and you can report back to AmmoSeek that they can conduct their testing as requested by them in their documentation. 


If you experience any issues along the way, we would be happy to take a look. Simply submit a ticket at help.coreware.com or you can also create a ticket by emailing support@coreware.com.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article