Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function criteo_price(){
- var population = criteo_population();
- if(population == "A"){
- return regular_price; //regular_price variable to be defined according to dataLayer
- } else if( population == "B"){
- return regular_price*margin; //regular_price and margin variable to be defined to dataLayer
- } else{
- console.log("Population setup error.")
- return regular_price;
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment