Welcome to code.broker, a simple blog platform to share code and tips about frontend & backend programming, data marketing & Growth Hacking. Everybody is invited to share his own content and comment posts. A forum is under construction.

[Tutoriel] Get the domain name from an url on Excel or Google Sheet

Logo ExcelLogo VBA

These are the formulas to extract the domain name from an URL in Excel or Google Sheet. To get the domain name and it exctension…

[Tutoriel] Remove the access to your wordpress admin and secure your website

In order to avoid any hacker to find your administration pages, you need to remove the access to any user who is not allowed to…

[Tutoriel] Create and edit a wordpress post from front-end (with PHP)

Logo HTML 5Logo PHP

I recently opened my wordpress blog to contributors. So I wanted to let anybody create a profile and write new posts easily. I don't want…

[Tutoriel] Update the setting index/noindex of Yoast SEO in PHP for each post

Logo PHPLogo Wordpress

If you are using the CMS Wordpress, you might know the plugin Yoast SEO. It is one of the best plugin to manage your SEO…

[Tutoriel] Simple circular graph to enhance a number (HTML, CSS and SVG)

Logo CSS 3Logo HTML 5Logo SQL

I looked for a way to enhance a number, a percentage or a rate. I had already seen these VG graph and I thought it…

[Tutoriel] How to slugify a string with Excel

Logo ExcelLogo VBA

I recently had to work on a database on excel, before importing on my website. So I needed to create new pages on this website…

[Tutoriel] Pre-populate a form field (input) with JavaScript

Logo HTML 5Logo JavaScript (JS)

Today, I need to get the information stored in a cookie to add it to an HTML input. Then, when a user tries to contact…

[Ressource] Cookie bar & load scripts - Plugin wordpress

This documentation is in process. A complete documentation will be available on this page soon. This plugin is developped and maintained by Arthur d'Hausen. It…

[Tutoriel] Cookie bar to let visitors allow / block cookies on your website (RGPD compliant)

Logo Google analyticsLogo HTML 5Logo JavaScript (JS)

I have previously made a tuto on creating a simple information bar about cookies. Right know I'll try to expand my Cookie Bar with more…

[Tutoriel] Simple information cookie bar for your privacy policy in JS or jQuery

Logo HTML 5Logo JavaScript (JS)

Hi there, today I have created a very simple information bar to let all my visitors know about the use of cookies on my website…

[Tutoriel] Search and display all duplicates posts in wordpress (by post_title)

Logo PHPLogo SQLLogo Wordpress

I recently had to detect duplicate posts on a very big wordpress website, containing a lot of data about films (where films, actors, filmmaker... are…

[Outil] UTM Builder & other url parameters

Create your custom links thanks to this UTM builder and add any other url parameters to your link in a few seconds. This simple form…

[Outil] Form to add tracking links (url parameters) to your HTML

Logo HTML 5

UTMs and TRACKING LINKS BUILDER FOR HTML : This form has been created to automatically add your tracking links and UTMs to your HTML formatted…

[Tutoriel] Store UTM and other tracking links (url parameters) in a cookie

Logo Google analyticsLogo JavaScript (JS)

I recently developped a cookie to save / store tracking links and UTMs (tracking links on Google Analytics) on my website. I'll explain below the…

[Tutoriel] Simply create a cookie with JS cookie

Logo JavaScript (JS)

I recently had to create a small cookie for a commercial website. I was trying to save users session datas, to send its to a…

Soutiens les tutos et ressources gratuites de code.broker en cliquant sur la pub ci-dessous ⬇