ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Google Analytics functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
GglAnalyticsAddSocialNetworkAction (Function)
In french: GglAnalyticsAjouteRéseauSocial
Adds a social network action beside Google Analytics.
Example
GglAnalyticsAddSocialNetworkAction("Facebook", "like", "http://monsite.com")
Syntax
GglAnalyticsAddSocialNetworkAction(<Social network> , <Action> , <Target> [, <Other>])
<Social network>: Character string
Name of the social network for which the action is to be added (e.g. Facebook, Twitter, ...).
<Action>: Character string
Type of action to add (Like, Send, Tweet, ...).
<Target>: Character string
Target of the action on the social network. This parameter can be the address of a Web site or any other character string.
<Other>: Optional variant
Additional options depending on the social network. For more details on the possible values, see the Google Analytics documentation (https://developers.google.com/analytics/devguides/collection/analyticsjs/social-interactions)
This parameter is set to Null by default.
Remarks
  • To use this function, you must have and save a Google Analytics identifier in the project. For more details, see WEBDEV and Google Analytics.
  • Note: On July 1, 2023, Google Analytics moved from Universal Analytics to Google Analytics 4. WEBDEV 28 supports both versions. The WLanguage functions have been adapted. By default, existing projects use Universal Analytics and new projects use Google Analytics 4. For more details, see WEBDEV and Google Analytics.
Component: WDJS.DLL
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help