File tree 2 files changed +19
-2
lines changed 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 55
55
56
56
'policy ' => null ,
57
57
58
+ /* Google Analytics configuration
59
+ |--------------------------------------------------------------------------
60
+ |
61
+ | If you use Google Analytics, you can configure the package to automatically
62
+ | load the Google Analytics script when the user gives his consent.
63
+ |
64
+ | The ID parameter is required and represents your Google Analytics ID.
65
+ |
66
+ | The anonymize parameter is optional and determines whether the user's IP
67
+ | address should be anonymized before being sent to Google Analytics.
68
+ |
69
+ */
70
+ 'google_analytics ' => [
71
+ 'id ' => env ('GOOGLE_ANALYTICS_ID ' , "" ),
72
+ 'anonymize_ip ' => env ('GOOGLE_ANALYTICS_ANONYMIZE_IP ' , true )
73
+ ],
74
+
58
75
];
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ protected function registerCookies(): void
20
20
// Register all Analytics cookies at once using one single shorthand method:
21
21
// Cookies::analytics()
22
22
// ->google(
23
- // id: env('GOOGLE_ANALYTICS_ID '),
24
- // anonymizeIp: env('GOOGLE_ANALYTICS_ANONYMIZE_IP'),
23
+ // id: config('cookieconsent.google_analytics.id '),
24
+ // anonymizeIp: config('cookieconsent.google_analytics.anonymize_ip')
25
25
// );
26
26
27
27
// Register custom cookies under the pre-existing "optional" category:
You can’t perform that action at this time.
0 commit comments