@artisan-commerce/analytics-web 0.2.0-canary.109 → 0.2.0-canary.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +4 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.mjs +4 -3
- package/dist/bundle.mjs.map +1 -1
- package/dist/bundle.umd.js +4 -3
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/bundle.mjs
CHANGED
|
@@ -50,7 +50,7 @@ State$1._instance = null;
|
|
|
50
50
|
|
|
51
51
|
var name = "@artisan-commerce/analytics-web";
|
|
52
52
|
var description = "Artisn commerce analytics web library";
|
|
53
|
-
var version = "0.2.0-canary.
|
|
53
|
+
var version = "0.2.0-canary.109";
|
|
54
54
|
var type = "module";
|
|
55
55
|
var main = "./dist/bundle.cjs";
|
|
56
56
|
var module = "./dist/bundle.mjs";
|
|
@@ -85,7 +85,7 @@ var dependencies = {
|
|
|
85
85
|
};
|
|
86
86
|
var devDependencies = {
|
|
87
87
|
"@artisan-commerce/products": "0.9.0-canary.69",
|
|
88
|
-
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.
|
|
88
|
+
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.103",
|
|
89
89
|
"@artisan-commerce/state": "0.3.0-canary.18",
|
|
90
90
|
"@artisan-commerce/types": "0.14.0-canary.46"
|
|
91
91
|
};
|
|
@@ -821,11 +821,12 @@ const postFacebookConversion = async (config) => {
|
|
|
821
821
|
const { apiURL, eventName, customData, authToken } = config;
|
|
822
822
|
const { eventSourceUrl, testCode } = config;
|
|
823
823
|
const { countryISOCode, fbAccessToken, fbPixelId } = config;
|
|
824
|
-
const { platform = "web" } = customData != null ? customData : {};
|
|
824
|
+
const { platform = "web", account_id } = customData != null ? customData : {};
|
|
825
825
|
const { debug } = State().state;
|
|
826
826
|
const selectedHeaders = new Headers();
|
|
827
827
|
selectedHeaders.set("Content-Type", "application/json");
|
|
828
828
|
selectedHeaders.set("Platform", platform);
|
|
829
|
+
selectedHeaders.set("Account", account_id);
|
|
829
830
|
selectedHeaders.set("Authorization", authToken);
|
|
830
831
|
const url = `${apiURL}/api/fb-conversion-api/conversions-api`;
|
|
831
832
|
const facebookConversionBody = {
|