This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Http; | |
using System.Text.RegularExpressions; | |
namespace YourApplication.Controllers { | |
public class CookiesController: Controller { | |
[HttpGet] | |
public IActionResult SyncCookies() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.UseMvc(routes => { | |
routes.MapRoute("cookies", "sync", defaults: new { | |
controller = "Cookies", action = "SyncCookies" | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Start VWO Async Smartcode --> | |
< script type = 'text/javascript' > window._vwo_code = window._vwo_code || (function() { | |
var account_id = < YOUR_ACCOUNT_ID > , | |
settings_tolerance = 2000, | |
library_tolerance = 2500, | |
use_existing_jquery = false, | |
is_spa = 1, | |
hide_element = 'body', | |
/* DO NOT EDIT BELOW THIS LINE */ | |
f = false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.VWO = window.VWO || []; | |
window.VWO.push(['activate', { | |
customUrl: 'http://mycustomurl.com/custom-url' | |
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.VWO = window.VWO || []; | |
window.VWO.push(['updateSPAWaitTime', < time_in_ms > ]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.VWO = window.VWO || []; | |
window.VWO.push(['applyChanges', < Array_of_exp_ids > ]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.VWO = window.VWO || []; | |
window.VWO.push(['revertChanges', < exp_id > ]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VWO.push(['refreshElements', < Array_of_selector_paths > , < exp_ids > ]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VWO.push(['refreshElements', ['#phone-name']]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CUSTOM CODE */ | |
vwoRequestAnimationFrame = window.requestAnimationFrame || function(fun) { | |
setTimeout(function() { | |
fun(); | |
}, 17) | |
} | |
vwoRequestAnimationFrame(function apply() { | |
// Change the below line with the action to be performed inside setInterval | |
VWO.push(['refreshElements', ['.hs-button']]); | |
vwoRequestAnimationFrame(apply); |