File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -9,22 +9,30 @@ window.addEventListener('load', function() {
99
1010 onFirstAction : function ( user_preferences , cookie ) {
1111 // callback triggered only once on the first accept/reject action
12+ location . reload ( ) ;
1213 } ,
1314 onAccept : function ( ) {
1415 if ( cc . allowedCategory ( 'analytics' ) ) {
1516 gtag ( 'consent' , 'update' , {
1617 'analytics_storage' : 'granted'
1718 } ) ;
19+ document . cookie = "cc_analytics=1" ;
20+ } else {
21+ document . cookie = "cc_analytics=0" ;
1822 }
1923
2024 if ( cc . allowedCategory ( 'targeting' ) ) {
2125 gtag ( 'consent' , 'update' , {
2226 'ad_storage' : 'granted'
2327 } ) ;
28+ document . cookie = "cc_targeting=1" ;
29+ } else {
30+ document . cookie = "cc_targeting=0" ;
2431 }
2532 } ,
2633 onChange : function ( cookie , changed_categories ) {
2734 // callback triggered when user changes preferences after consent has already been given
35+ location . reload ( ) ;
2836 } ,
2937
3038 gui_options : {
You can’t perform that action at this time.
0 commit comments