Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
webdev:api:google_shit [22/04/2019 19:29] dolo [Gmaps] |
webdev:api:google_shit [02/09/2019 18:59] (Version actuelle) dolo [Google shits] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Google | + | ====== Google |
- | | [[http:// | + | |
* [[https:// | * [[https:// | ||
Ligne 8: | Ligne 7: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | ===== Analytics ===== | ||
+ | [[http:// | ||
+ | |||
+ | Ajouter un accès pour un compte tiers : Admin (en bas à gauche) -> Colonne 1 : Gestion des utilisateurs | ||
===== Google Tag Manager ===== | ===== Google Tag Manager ===== | ||
+ | Pretty much shit, unless you're in marketing. | ||
+ | |||
The scripts included by GTM are added before the first script in the page. So with the //plans de marquages// where we **have to** put some script before the gtm js we can't make it work. | The scripts included by GTM are added before the first script in the page. So with the //plans de marquages// where we **have to** put some script before the gtm js we can't make it work. | ||
Ligne 24: | Ligne 31: | ||
})(window, | })(window, | ||
</ | </ | ||
+ | |||
+ | [[https:// | ||
===== Charger analytics en asynchrone ===== | ===== Charger analytics en asynchrone ===== | ||
Ligne 29: | Ligne 38: | ||
===== Gmaps ===== | ===== Gmaps ===== | ||
- | [[https:// | + | [[https:// |
+ | |||
+ | You need a credit card to link any google map now + if you go above the quota you have to pay them 🖕\\ | ||
+ | < | ||
+ | I'll send them an email mentioning how that's illegal and contrary to [[https:// | ||
+ | Actually you need to delete the whole [[https:// | ||
<Code linenums> | <Code linenums> | ||
Ligne 50: | Ligne 64: | ||
Ajouter une adresse propre (Geocoding) : [[https:// | Ajouter une adresse propre (Geocoding) : [[https:// | ||
- | === Version iframes | + | **Les maps avec javascript sont plus chiante à mettre en place et n'ont en général aucun avantage sur celles en iframes pour des trucs simples, mais elles créent un risque d' |
+ | |||
+ | === Version iframes === | ||
Ouvrir gmaps et une adresse, puis faire " | Ouvrir gmaps et une adresse, puis faire " | ||
- | Moins d' | + | Le niveau |