How do I link a quote to a sale (estimateref parameter)?
Short answer
Pass the reference or references of the quotes in the sale tag, using the estimateref parameter.
The link is then visible in the Sales list, in the Number of quotes and Linked quote fields.
Example
EA_push([
"ref",
"ref-de-vente",
"amount",
"le",
//LIST OF THE OTHER PARAMETERS
"estimateref",
"devis-1",
"estimateref",
"devis-2",
"estimateref",
"devis-3",
]);
The quote or quotes must be reported before the sale.
Prerequisites
- The quote tag must fire correctly, following the standard Eulerian implementation.
- The quote must be sent before the sale. If the sale arrives first, the link cannot be made.
- The quote reference used in the sale tag must match exactly the one sent in the quote tag (letter case, prefixes, spaces).
JavaScript EA_push syntax
In a standard JavaScript tag using EA_push, the legacy syntax with a repeated estimateref key is accepted:
EA_push([
"ref",
"REF_VENTE",
"amount",
"LO_AMOUNT",
// … other parameters
"estimateref",
"REF_DEVIS_1",
"estimateref",
"REF_DEVIS_2",
"estimateref",
"REF_DEVIS_3",
]);
For any other integration (server-to-server, native mobile apps, postbacks and so on), use the indexed form estimateref0..N.
Checking in the interface
Once the implementation is in place, check:
- Sales list → the Number of quotes column (must be ≥ 1) and the Linked quote column (must show the reference or references).
- Quotes list → check that the quotes do exist in the system, with the same reference as the one sent through
estimateref.
Troubleshooting
The link is not made although the parameter is sent
The most common cause: the parameter is sent as estimateref=... (simple key) on a server-to-server integration, instead of the indexed form estimateref0=....
Solution: replace estimateref with estimateref0 (and estimateref1, estimateref2, … if there are several quotes).
The quote and the sale exist but are not linked
Check the order of the hits in the raw log: the quote tag must arrive before the sale tag. If the sale fires first, Eulerian cannot make the link after the fact.
The reference is not recognised
Check that there is no difference in letter case, spaces or prefix between the reference sent in the quote tag and the one sent in the sale tag’s estimateref. The two must be strictly identical.