You are here

camelCase Variables

The santiano.io GTM variables Rocks.

  • variablesAreCamelCase

    • firstLetterOfTheVariableIsLowerCase

    • eachWordAfterIsUpperCase

    • noSpaceInVariables

    • noUnderscores

 

  • variablesAlwaysHaveAPrefix

    • userLanguage / websiteLanguage

    • becauseThisIsSimplyNotTheSame

 

  • variablesNamesAreInEnglish

    • noAccentNoFunkyCharacters

 

  • variableValuesAreInAnyLanguageYouWant

    • 'userConnectionStatus': 'utilisateur connecté'
    • sorryForTheExampleIOnlySpeakFrenchAndEnglish

 

  • variablesAreSelfExplanatory

    • Is this a productId, productCategoryId, productColorId, orderId, userId, or a gaClientId?

    • I told you that was selfExplanatory.

 

  • variablesShouldNotShowWhatVariableTypeItIsForGtm
    • ifYouChangeFromDataLayerVariableToCustomJavaScriptVariableYouShouldNotHaveToChangeItsName

    • andByTheWayTheVariableTypeIsShownInGoogleTagManagerInterface