Why are there gaps in sales between Eulerian and my back office?
Short answer
There can be gaps between the sales Eulerian collects and the sales in your back office.
In most cases, these gaps come from differences in collection or from an implementation problem in certain specific situations: confirmation domain, payment method, device, JavaScript syntax, duplicate order reference, and so on.
Generally speaking, a small gap can be considered normal. It can come from cases such as an ad blocker, the browser being closed too early, or an Eulerian tag call that does not fire properly.
What are the possible natural causes?
Several factors can disrupt the call to the Eulerian collector tag.
The most common cases are:
- the browser is closed before the Eulerian tag is called;
- blocking third-party tag calls before the Eulerian tag;
- resources that take too long to load, for example images that delay or block the tag call;
- an ad blocker;
- the tag is called over
httpwhile the page is onhttps, which the browser may block; - JavaScript is disabled on the order page;
- no automatic return from the payment platform to the confirmation page.
Tip
We recommend asking your payment platform to automate the redirect to the confirmation page after payment.
Check 1 · Is the Collector rule correct?
Eulerian relies on the current URL of the call to identify the site and retrieve the data.
If your confirmation page is on a different domain from the one configured in Eulerian, the conversion may not show up in the interface.
Example
If the configured site is:
http://www.client.tld
but the confirmation page is on:
https://www.clientsecure.tld
then the sale may not be collected if that domain has not been passed on and configured.
Subdomains, on the other hand, are treated as the same Eulerian site.
Example
The following domains can be treated as belonging to the same site:
http://client.tld
https://secure.client.tld
You can include several domains in one Eulerian site, but the request has to go through your Customer Success Manager.
Check 2 · Are all payment methods tracked?
Test the different payment methods available on your site.
For example:
- bank card;
- bank transfer;
- cheque;
- PayPal;
- other available payment methods.
A gap can appear if some payment methods do not redirect properly to the confirmation page, or if the Eulerian tag does not fire there.
Check 3 · Are all devices and environments tracked?
Check the technical context in which the sales are made.
Every environment must be tracked correctly, in particular:
- desktop;
- mobile site;
- native iOS mobile app;
- native Android mobile app;
- native Android tablet app;
- other specific environments.
A gap can appear if tracking is in place on the desktop site but missing or incomplete in a mobile or app environment.
Check 4 · Is the syntax correct for orders with several products?
A common error involves sales containing several products.
The code can work when a visitor has only one product in their basket, but throw a JavaScript error when there are several.
The classic case is a missing comma between two product blocks.
Example of the error
<script type="text/javascript">
/*<![CDATA[*/
var EA_data = [
"ref", "REMPLACER_PAR_REFERENCE_DE_LA_COMMANDE",
"amount", "REMPLACER_PAR_MONTANT_DE_LA_COMMANDE",
"prdref", "REMPLACER_PAR_REFERENCE_DU_PRODUIT_1",
"prdamount", "REMPLACER_PAR_MONTANT_DU_PRODUIT_1",
"prdquantity", "REMPLACER_PAR_QUANTITE_DU_PRODUIT_1"
"prdref", "REMPLACER_PAR_REFERENCE_DU_PRODUIT_2",
"prdamount", "REMPLACER_PAR_MONTANT_DU_PRODUIT_2",
"prdquantity", "REMPLACER_PAR_QUANTITE_DU_PRODUIT_2"
];
...
</script>
In this example, a comma is missing between the two product blocks.
Corrected example
<script type="text/javascript">
/*<![CDATA[*/
var EA_data = [
"ref", "REMPLACER_PAR_REFERENCE_DE_LA_COMMANDE",
"amount", "REMPLACER_PAR_MONTANT_DE_LA_COMMANDE",
"prdref", "REMPLACER_PAR_REFERENCE_DU_PRODUIT_1",
"prdamount", "REMPLACER_PAR_MONTANT_DU_PRODUIT_1",
"prdquantity", "REMPLACER_PAR_QUANTITE_DU_PRODUIT_1",
"prdref", "REMPLACER_PAR_REFERENCE_DU_PRODUIT_2",
"prdamount", "REMPLACER_PAR_MONTANT_DU_PRODUIT_2",
"prdquantity", "REMPLACER_PAR_QUANTITE_DU_PRODUIT_2"
];
...
</script>
Check 5 · Are special characters handled correctly?
Test the different types of products, especially those whose names may contain:
- apostrophes;
- accented letters;
- other special characters.
An unescaped apostrophe can throw a JavaScript error and stop the sale from being collected.
Example of the error
<script type="text/javascript">
/*<![CDATA[*/
var EA_data = [
'ref', 'REMPLACER_PAR_REFERENCE_DE_LA_COMMANDE',
'amount', 'REMPLACER_PAR_MONTANT_DE_LA_COMMANDE',
'prdref', 'REF1',
'prdname', 'Alpe d'huez'
];
...
</script>
In this example, the apostrophe in Alpe d'huez throws a JavaScript error.
Corrected example
<script type="text/javascript">
/*<![CDATA[*/
var EA_data = [
'ref', 'REMPLACER_PAR_REFERENCE_DE_LA_COMMANDE',
'amount', 'REMPLACER_PAR_MONTANT_DE_LA_COMMANDE',
'prdref', 'REF1',
'prdname', 'Alpe d\'huez'
];
...
</script>
Check 6 · Is the order reference unique?
The reference of each conversion, sale or quote, must be unique.
If the same reference is used more than once, Eulerian records only the first conversion.
This can explain a gap with the back office if it holds several orders with the same reference while Eulerian keeps only one.
To check for this case:
- search for the order reference concerned;
- use the widest possible date range;
- check whether the reference was already recorded on an earlier date.
If the reference already exists, the new sale carrying the same reference cannot be recorded again.
Check 7 · Can the logs help identify the gap?
If the previous checks do not explain the gap, you can ask your Customer Success Manager to look at the Eulerian access logs.
This analysis can help find the missing references and better understand where the gaps come from.
For the analysis to be possible, you need to provide:
- one or more example URLs of your confirmation page;
- a recent file containing the missing references;
- if possible, the products involved;
- if possible, the payment method;
- if possible, the IP address.
Important
Logs are kept for 7 days. After that, they are deleted automatically. The references you send must therefore be recent enough at the time of the analysis.
Diagnostic checklist
Before escalating the analysis, check the following:
| What to check | Why it matters |
|---|---|
| Does the Eulerian tag fire on the confirmation page? | If the tag does not fire, the sale cannot be collected. |
| Is the confirmation domain configured? | An undeclared domain can stop the conversion from coming through. |
| Do all payment methods redirect to the confirmation page? | Some payment platforms may not send the user back automatically. |
| Are all devices covered? | Tracking may be incomplete on mobile, app or tablet. |
| Are multi-product orders formatted correctly? | A JavaScript error may appear only with several products. |
| Are special characters escaped? | An apostrophe or a special character can break the JavaScript. |
| Is the order reference unique? | A reference already used will not be recorded a second time. |
| Are the missing references recent? | Logs are available for only 7 days. |
Key points
- A small gap between Eulerian and the back office can be normal.
- Ad blockers, the browser being closed too early or blocking calls can prevent collection.
- The confirmation page must be on a domain Eulerian recognises.
- Every payment method and every device must be tested.
- JavaScript errors may appear only in certain cases, such as multi-product baskets or products with special characters.
- Each order reference must be unique.
- Logs can help diagnose the gap, but they are available for only 7 days.