duracelltomi / gtm4wp

Google Tag Manager plugin for WordPress
https://gtm4wp.com/
GNU General Public License v3.0
147 stars 96 forks source link

WPML - get string values in master language and not in the translated values #145

Open loran750 opened 4 years ago

loran750 commented 4 years ago

Hello

The purpose is to get data in the main language of a website. Because in GA, it will be easier to get stats combined for all languages, otherwise we need to addition the different stats for all languages.

As an alternative, we would have new variables in the datalayer for those keys. We could have also a option in the admin to activate or desactivate this need.

duracelltomi commented 4 years ago

Hi Laurent,

Do you have docs that could help me to use WPML with the master language?

loran750 commented 4 years ago

Hello

I have found those documentations, with sometimes some PHP examples

WPML Coding API https://wpml.org/documentation/support/wpml-coding-api/

WPML’s tables, to understand relations in translation https://wpml.org/documentation/support/wpml-tables/

Advanced uses for custom types, fields and taxonomy https://wpml.org/documentation/support/advanced-uses-for-custom-types-fields-and-taxonomy/

Translating the theme you created https://wpml.org/documentation/support/translating-the-theme-you-created/

PHP API to add string translations https://wpml.org/forums/topic/php-api-to-add-string-translations/ and https://wpml.org/forums/topic/get-a-string-translated-on-specific-language-from-admin-area/ https://wpml.org/forums/topic/how-to-use-translated-strings-and-taxonomies-in-php-code/ https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/ https://wpml.org/forums/topic/how-to-translate-url-in-php-template/

regards Laurent Le jeu. 10 oct. 2019 à 11:59, Thomas Geiger notifications@github.com a écrit :

Hi Laurent,

Do you have docs that could help me to use WPML with the master language?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duracelltomi/gtm4wp/issues/145?email_source=notifications&email_token=AATI3EEQLYPLSA6D5VJSONTQN34I3A5CNFSM4I7KI57KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA3U7SQ#issuecomment-540495818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATI3EFHEQTGVFTPH426KM3QN34I3ANCNFSM4I7KI57A .