This file contains hidden or 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
//----------------------------------- | |
// Create mobile preferred ads (use one with highest ctr) | |
// Ads a new Ad with a headline using the keyword with the most impressions | |
// Author : Vincent Hsu | |
// Website: http://www.suisseo.ch | |
// NB : This scipt is useless now since Mobile ads don't exist anymore, just storing stuff here | |
//----------------------------------- | |
function main() { | |
index = 0; |
This file contains hidden or 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
// 3 letter domain names available | |
// Author : https://www.suisseo.ch | |
aiy.ch | |
ajq.ch | |
aqb.ch | |
aqr.ch | |
bqo.ch | |
bqu.ch | |
bxe.ch | |
bxi.ch |
This file contains hidden or 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
// Get single datalayer value from gtm in vanilla javascript | |
google_tag_manager["GTM-XXXXXXX"].dataLayer.get('variable') | |
// Retrieve value from google tag manager datalayer object in vanilla javascript | |
google_tag_manager["GTM-XXXXXXX"].dataLayer.get('variable')['purchase']['actionField']['revenue'] | |
// To fetch the value from a javacript variable inside gtm of custom html you would use the following code from the same object | |
variable.purchase.actionField.revenue |
This file contains hidden or 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
Recently we faced a problem with cloudflare blocking some server to server requests. | |
To fix the problem we simply created a page rule with the blocked ressource URL | |
And applied the following rule. | |
Browser Integrity Check : Off | |
Another solution would have been to simply add a user agent in the http request to avoid cloudflare from blocking it |
This file contains hidden or 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
// Override $_SERVER['REMOTE_ADDR'] on Wordpress to retrieve the client ip for cloudflare users | |
// This will also correct the [_remote_ip] shortcode with contact form 7 ( wpcf7 ) or any other plugin using $_SERVER['REMOTE_ADDR'] | |
// Simply add the following code in the wp_config.php file and you're done. | |
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { | |
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"]; | |
} |
This file contains hidden or 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
/********************************************************************************************************************** | |
//Check out the tutorial here : https://medium.com/@20cent.hsu/free-sms-stock-alerts-with-twilio-and-google-spreadsheets-1aa5dec7ef4c | |
//Realtime price quote in GOOGLEFINANCE can be delayed by up to 20 minutes. | |
//Author : Vincent Hsu (Suisseo) | |
//Twitter : @suisseo | |
**********************************************************************************************************************/ | |
//These are mandatory parameters you will find in your twilio Dashboard | |
var ACCOUNT_SID = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; | |
var AUTH_TOKEN = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; |
This file contains hidden or 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
<h3>Hum Hum</h3> | |
<style> | |
.justalittlehack555 { | |
float:left; | |
margin:0px 10px 10px 0px; | |
} | |
@media only screen and (max-width:450px) { | |
.justalittlehack555 { | |
float:none; | |
display:block; |
This file contains hidden or 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
// Title : SiteLink 404 Checker Account Level for Mcc level : https://goo.gl/P0SKk3 | |
// Author : Vincent Hsu @suisseo | |
// Website : http://www.suisseo.ch/en | |
// Checks sitelinks in campaigns and adgroups with at least 1 impression during the last 30 days | |
// Broken links are simply logged in the adwords console. An e-mail is sent to you when the script is executed. | |
//You should add your e-mail here. | |
var emailAlert= "[email protected]"; | |
function main() { |
This file contains hidden or 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
// Title : SiteLink 404 Checker Mcc level script for Single Account go here : https://goo.gl/QyuuG2 | |
// Author : Vincent Hsu @suisseo | |
// Website : http://www.suisseo.ch/en | |
// Checks sitelinks in campaigns and adgroups with at least 1 impression during the last 30 days | |
// for 50 first accounts with over than 100 impressions during the last 30 days in your MCC | |
// Broken links are simply logged in the adwords console. An e-mail is sent to you when the script is executed. | |
//You should add your e-mail here. | |
var emailAlert= "[email protected]"; |
This file contains hidden or 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
function main() { | |
Logger.log('AdWordsApp.extensions().sitelinks() list.'); | |
logSitelinks(AdWordsApp); | |
Logger.log('Campaign and AdGroup list.'); | |
var campIter = AdWordsApp.campaigns().get(); | |
while(campIter.hasNext()) { | |
var camp = campIter.next(); | |
logSitelinks(camp); | |
var agIter = camp.adGroups().get(); |