File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ private function setupAnalyticsClient()
85
85
if ($ this ->analyticsClient ) {
86
86
return ;
87
87
}
88
-
88
+
89
+ $ this ->region = $ this ->configHelper ->getAnalyticsRegion ();
89
90
$ this ->analyticsClient = AnalyticsClient::create (
90
91
$ this ->configHelper ->getApplicationID (),
91
92
$ this ->configHelper ->getAPIKey (),
Original file line number Diff line number Diff line change @@ -1685,6 +1685,19 @@ public function getMaxRecordSizeLimit($storeId = null)
1685
1685
);
1686
1686
}
1687
1687
1688
+ /**
1689
+ * @param $storeId
1690
+ * @return string
1691
+ */
1692
+ public function getAnalyticsRegion ($ storeId = null )
1693
+ {
1694
+ return $ this ->configInterface ->getValue (
1695
+ self ::ANALYTICS_REGION ,
1696
+ ScopeInterface::SCOPE_STORE ,
1697
+ $ storeId
1698
+ );
1699
+ }
1700
+
1688
1701
/**
1689
1702
* @param $storeId
1690
1703
* @return bool
Original file line number Diff line number Diff line change 1259
1259
If your Algolia plan allows a higher record size limit, you can customize the record size limit.]]>
1260
1260
</comment >
1261
1261
</field >
1262
+ <field id =" analytics_region" translate =" label comment" type =" text" sortOrder =" 96" showInDefault =" 1" >
1263
+ <label >Analytics Region</label >
1264
+ <comment >
1265
+ <![CDATA[ Default value is 'us']]>
1266
+ </comment >
1267
+ </field >
1262
1268
</group >
1263
1269
<group id =" queue" translate =" label" type =" text" sortOrder =" 20" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
1264
1270
<label >Indexing Queue</label >
Original file line number Diff line number Diff line change 81
81
<algoliasearch_advanced >
82
82
<advanced >
83
83
<max_record_size_limit >10000</max_record_size_limit >
84
+ <analytics_region >us</analytics_region >
84
85
</advanced >
85
86
<queue >
86
87
<number_of_element_by_page >300</number_of_element_by_page >
You can’t perform that action at this time.
0 commit comments