-
AuthorPosts
-
September 9, 2018 at 6:29 pm #1007644Antonia SondermannGuest
Hallo ich habe einen gültigen Api-Key für Google Maps und den auch versucht in die Kontakt-Seite einzubinden. Aber Google Maps kann nicht geladen werden.
Es kommen in der Konsole Meldungen.
Laden fehlgeschlagen für das <script> mit der Quelle “https://www.googletagmanager.com/gtag/js?id=UA-124525793-1”. kontakt:502
You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors
js:43:467
_.Zb
https://maps.googleapis.com/maps/api/js:43:467
_.xm/</<
https://maps.googleapis.com/maps-api-v3/api/js/34/5/intl/de_ALL/common.js:57:325
_.Mr</<
https://maps.googleapis.com/maps-api-v3/api/js/34/5/intl/de_ALL/common.js:151:366
c
https://maps.googleapis.com/maps-api-v3/api/js/34/5/intl/de_ALL/common.js:49:82
<anonym>
https://maps.googleapis.com/maps/api/js/QuotaService.RecordEvent:1:22
Google Maps JavaScript API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version util.js:224:33Ich kann damit nichts anfangen und werde auch aus den Links nicht schlau, da ich kein Html kann und Enfold der einfachen Bedienung halber gekauft habe.
Für eine Lösung wäre ich dankbar.September 11, 2018 at 4:40 am #1008160Hey Antonia Sondermann,
Thank you for using Enfold.
Did you setup a billing account for your Google Cloud Platform Console? You can setup a billing account here:
// https://console.cloud.google.com/projectselector/billing/enable
More info: https://cloud.google.com/billing/docs/how-to/manage-billing-account
And you may need to update the API key if you’re using the old one or the v2 version.
// https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key
And while you’re at it, please register your theme purchase code to the forum.
// https://kriesi.at/support/register/
Best regards,
IsmaelSeptember 21, 2018 at 2:49 pm #1012793Hey Ismael,
it didn`t work. I got a billing acount and the same Problem started again. The instruction gives no information on how to update a API -Key.
If i klick on get an API-Key it is generated automaticly.
So i decided to use OSM shortcode and this works fine without any problems.But i have now a problem with the google tracking code. It says that it is not correct and that a shoud take a asynchrone Tracking code.
But i got it from google analytics and used it with copy – paste. It says also that a shout put it behind the header on every page. But in the enfold theme a have no option, because it makes it automaticly.
I wanted to connect google analytics and get a confirmation of my property but it always fails and says error, because the tracking code is not correct.
How can i solve that problem? I registert my envold theme already.
Thanks
Antonia SondermannSeptember 21, 2018 at 2:56 pm #1012795Hey Ismael,
i wanted to connect the google search console and google analytics.
I changed the name of a property and had suddenly 2 properties. I tried to delete the old one, but i cannot connect the “new” property and dont get a confirmation. They say a solution is to upload a html file. But how and where?
Thanks
Antonia SondermannSeptember 21, 2018 at 4:49 pm #1012832Hi,
1) If you want to add Google analytics code to the head section please add this code to the child theme:function avia_move_google_analytics_to_head() { remove_action('wp_footer', 'avia_print_tracking_code', 100); add_action('wp_head', 'avia_print_tracking_code', 1); } add_action( 'init', 'avia_move_google_analytics_to_head' );
and insert your tracking code in the theme options panel (Enfold > Theme Options > Google Services).
2) You can use ftp to upload the html file. You can add it to the main wordpress folder (where the wp-content, wp-admin folder, etc. are located).
Personally I’d recommend to use a plugin like Yoast Seo ( https://yoast.com/wordpress/plugins/seo/ ) to validate the property ( https://kb.yoast.com/kb/how-to-connect-your-website-to-google-webmaster-tools/ ).
Best regards,
PeterSeptember 21, 2018 at 9:28 pm #1012908Hi Peter, thanks, the confirmation of the property worked.
But i don`t know how and where to add the code to the child theme. I never made changes there before.
I only made some chick CSS changes in the General styling. The tracking code etc. is already inserted.
I would need some help to finde the way to do it.
Thanks.
Antonia SondermannSeptember 23, 2018 at 1:32 pm #1013315Hi,
Please go to Appearance > Editor and make sure the “Enfold Child” theme is selected in the dropdown on the right side (if you’re not using a child theme make sure “Enfold” is selected).
Then click on “functions.php” in file/folder tree on the right side sidebar. The editor will then load this file. Scroll to the very bottom of the file and paste this code:
function avia_move_google_analytics_to_head() { remove_action('wp_footer', 'avia_print_tracking_code', 100); add_action('wp_head', 'avia_print_tracking_code', 1); } add_action( 'init', 'avia_move_google_analytics_to_head' );
into the file. Then click on the save button and wait for the confirmation box. That’s it :)
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.