Complete List of Country & Dialing Codes

COUNTRYA2 (ISO)A3 (UN)NUM (UN)DIALING CODE
AfghanistanAFAFG493
AlbaniaALALB8355
AlgeriaDZDZA12213
American SamoaASASM161-684
AndorraADAND20376
AngolaAOAGO24244
AnguillaAIAIA6601-264
AntarcticaAQATA10672
Antigua and BarbudaAGATG281-268
ArgentinaARARG3254
ArmeniaAMARM51374
ArubaAWABW533297
AustraliaAUAUS3661
AustriaATAUT4043
AzerbaijanAZAZE31994
BahamasBSBHS441-242
BahrainBHBHR48973
BangladeshBDBGD50880
BarbadosBBBRB521-246
BelarusBYBLR112375
BelgiumBEBEL5632
BelizeBZBLZ84501
BeninBJBEN204229
BermudaBMBMU601-441
BhutanBTBTN64975
BoliviaBOBOL68591
BonaireBQBES535599
Bosnia and HerzegovinaBABIH70387
BotswanaBWBWA72267
Bouvet IslandBVBVT7447
BrazilBRBRA7655
British Indian Ocean TerritoryIOIOT86246
Brunei DarussalamBNBRN96673
BulgariaBGBGR100359
Burkina FasoBFBFA854226
BurundiBIBDI108257
CambodiaKHKHM116855
CameroonCMCMR120237
CanadaCACAN1241
Cape VerdeCVCPV132238
Cayman IslandsKYCYM1361-345
Central African RepublicCFCAF140236
ChadTDTCD148235
ChileCLCHL15256
ChinaCNCHN15686
Christmas IslandCXCXR16261
Cocos (Keeling) IslandsCCCCK16661
ColombiaCOCOL17057
ComorosKMCOM174269
CongoCGCOG178242
Democratic Republic of the CongoCDCOD180243
Cook IslandsCKCOK184682
Costa RicaCRCRI188506
CroatiaHRHRV191385
CubaCUCUB19253
CuracaoCWCUW531599
CyprusCYCYP196357
Czech RepublicCZCZE203420
Cote d’IvoireCICIV384225
DenmarkDKDNK20845
DjiboutiDJDJI262253
DominicaDMDMA2121-767
Dominican RepublicDODOM2141-809,1-829,1-849
EcuadorECECU218593
EgyptEGEGY81820
El SalvadorSVSLV222503
Equatorial GuineaGQGNQ226240
EritreaERERI232291
EstoniaEEEST233372
EthiopiaETETH231251
Falkland Islands (Malvinas)FKFLK238500
Faroe IslandsFOFRO234298
FijiFJFJI242679
FinlandFIFIN246358
FranceFRFRA25033
French GuianaGFGUF254594
French PolynesiaPFPYF258689
French Southern TerritoriesTFATF260262
GabonGAGAB266241
GambiaGMGMB270220
GeorgiaGEGEO268995
GermanyDEDEU27649
GhanaGHGHA288233
GibraltarGIGIB292350
GreeceGRGRC30030
GreenlandGLGRL304299
GrenadaGDGRD3081-473
GuadeloupeGPGLP312590
GuamGUGUM3161-671
GuatemalaGTGTM320502
GuernseyGGGGY83144
GuineaGNGIN324224
Guinea-BissauGWGNB624245
GuyanaGYGUY328592
HaitiHTHTI332509
Heard Island and McDonald IslandsHMHMD334672
Holy See (Vatican City State)VAVAT336379
HondurasHNHND340504
Hong KongHKHKG344852
HungaryHUHUN34836
IcelandISISL352354
IndiaININD35691
IndonesiaIDIDN36062
Iran, Islamic Republic ofIRIRN36498
IraqIQIRQ368964
IrelandIEIRL372353
Isle of ManIMIMN83344
IsraelILISR376972
ItalyITITA38039
JamaicaJMJAM3881-876
JapanJPJPN39281
JerseyJEJEY83244
JordanJOJOR400962
KazakhstanKZKAZ3987
KenyaKEKEN404254
KiribatiKIKIR296686
Korea, Democratic People’s Republic ofKPPRK408850
Korea, Republic ofKRKOR41082
KuwaitKWKWT414965
KyrgyzstanKGKGZ417996
Lao People’s Democratic RepublicLALAO418856
LatviaLVLVA428371
LebanonLBLBN422961
LesothoLSLSO426266
LiberiaLRLBR430231
LibyaLYLBY434218
LiechtensteinLILIE438423
LithuaniaLTLTU440370
LuxembourgLULUX442352
MacaoMOMAC446853
Macedonia, the Former Yugoslav Republic ofMKMKD807389
MadagascarMGMDG450261
MalawiMWMWI454265
MalaysiaMYMYS45860
MaldivesMVMDV462960
MaliMLMLI466223
MaltaMTMLT470356
Marshall IslandsMHMHL584692
MartiniqueMQMTQ474596
MauritaniaMRMRT478222
MauritiusMUMUS480230
MayotteYTMYT175262
MexicoMXMEX48452
Micronesia, Federated States ofFMFSM583691
Moldova, Republic ofMDMDA498373
MonacoMCMCO492377
MongoliaMNMNG496976
MontenegroMEMNE499382
MontserratMSMSR5001-664
MoroccoMAMAR504212
MozambiqueMZMOZ508258
MyanmarMMMMR10495
NamibiaNANAM516264
NauruNRNRU520674
NepalNPNPL524977
NetherlandsNLNLD52831
New CaledoniaNCNCL540687
New ZealandNZNZL55464
NicaraguaNINIC558505
NigerNENER562227
NigeriaNGNGA566234
NiueNUNIU570683
Norfolk IslandNFNFK574672
Northern Mariana IslandsMPMNP5801-670
NorwayNONOR57847
OmanOMOMN512968
PakistanPKPAK58692
PalauPWPLW585680
Palestine, State ofPSPSE275970
PanamaPAPAN591507
Papua New GuineaPGPNG598675
ParaguayPYPRY600595
PeruPEPER60451
PhilippinesPHPHL60863
PitcairnPNPCN612870
PolandPLPOL61648
PortugalPTPRT620351
Puerto RicoPRPRI6301
QatarQAQAT634974
RomaniaROROU64240
Russian FederationRURUS6437
RwandaRWRWA646250
ReunionREREU638262
Saint BarthelemyBLBLM652590
Saint HelenaSHSHN654290
Saint Kitts and NevisKNKNA6591-869
Saint LuciaLCLCA6621-758
Saint Martin (French part)MFMAF663590
Saint Pierre and MiquelonPMSPM666508
Saint Vincent and the GrenadinesVCVCT6701-784
SamoaWSWSM882685
San MarinoSMSMR674378
Sao Tome and PrincipeSTSTP678239
Saudi ArabiaSASAU682966
SenegalSNSEN686221
SerbiaRSSRB688381
SeychellesSCSYC690248
Sierra LeoneSLSLE694232
SingaporeSGSGP70265
Sint Maarten (Dutch part)SXSXM5341-721
SlovakiaSKSVK703421
SloveniaSISVN705386
Solomon IslandsSBSLB90677
SomaliaSOSOM706252
South AfricaZAZAF71027
South Georgia and the South Sandwich IslandsGSSGS239500
South SudanSSSSD728211
SpainESESP72434
Sri LankaLKLKA14494
SudanSDSDN729249
SurinameSRSUR740597
Svalbard and Jan MayenSJSJM74447
SwazilandSZSWZ748268
SwedenSESWE75246
SwitzerlandCHCHE75641
Syrian Arab RepublicSYSYR760963
TaiwanTWTWN158886
TajikistanTJTJK762992
United Republic of TanzaniaTZTZA834255
ThailandTHTHA76466
Timor-LesteTLTLS626670
TogoTGTGO768228
TokelauTKTKL772690
TongaTOTON776676
Trinidad and TobagoTTTTO7801-868
TunisiaTNTUN788216
TurkeyTRTUR79290
TurkmenistanTMTKM795993
Turks and Caicos IslandsTCTCA7961-649
TuvaluTVTUV798688
UgandaUGUGA800256
UkraineUAUKR804380
United Arab EmiratesAEARE784971
United KingdomGBGBR82644
United StatesUSUSA8401
United States Minor Outlying IslandsUMUMI5811
UruguayUYURY858598
UzbekistanUZUZB860998
VanuatuVUVUT548678
VenezuelaVEVEN86258
Viet NamVNVNM70484
British Virgin IslandsVGVGB921-284
US Virgin IslandsVIVIR8501-340
Wallis and FutunaWFWLF876681
Western SaharaEHESH732212
YemenYEYEM887967
ZambiaZMZMB894260
ZimbabweZWZWE716263

The 2-letter codes shown below are supplied by the ISO ( International Organization for Standardization). It bases its list of country names and abbreviations on the list of names published by the United Nations. The UN also uses 3-letter codes, and numerical codes to identify nations, and those are shown below.

Adobe follow A3 (UN) notation for geo_country column.If visit has to be matched to Analytics reports for a specific country then the query is as follows:

select count(distinct(concat(post_visid_high,post_visid_low,visit_num))),
pagename, page_event, post_event_list from test12345 where exclude_hit = ‘0’ and geo_country = ‘bra’ and hit_source = ‘1’ and bot_id = ‘0’;

For Visit following is the query:

select count(distinct(concat(post_visid_high,post_visid_low,visit_num))),
pagename, page_event, post_event_list from test12345 where exclude_hit = ‘0’ and hit_source = ‘1’ and bot_id = ‘0’;

Allowable Character limits of different Adobe Analytics variable

Many variables contain limitations to the number of bytes they can hold. A byte is generally a single character, however can take up to 6 bytes depending on the complexity of the character. Any variables that exceed these limitations are truncated:

  • PageName and all custom traffic variables (props): 100 bytes
  • Tracking Codes and all custom conversion variables (eVars): 255 bytes
  • URL and Referrer: 255 bytes
  • Hierarchy variables: 255 bytes total across all levels
  • The transactionID variable can contain any character other than a comma. It should be in the same location where the character limit (100 bytes) is specified. If multi-byte characters are used, multi-byte character support must be enabled in order to avoid problems with unexpected characters in the transactionID.
  • Purchase ID: 20 bytes
  • Products: 100 bytes for each product category
    100 bytes for each product name
    No overall limit within the entire variable
  • Events variable: No overall limit, however each serialized value may only contain 20 bytes

How to track banner/image impressions on website using Adobe Analytics

On page load there will be s.t() server call ,on banner/image impressions there will be s.tl() server call so artificially it will depress bounce and bounce rate.

Here is the document that explains how each of these metrics works.

You can build a calculated metric using single access, but that will only work when looking at specific dimensions (pages, evars, etc.) and not from a site-wide perspective.  If you want something at the site level, then you can use single page visits.

You should use the metric that suits your need based on where/how they will use it in reporting.

Solution 1:

By the user of other metric we can solve this problem.

We can build a calculated metric using single access, but that will only work when looking at specific dimensions (pages, evars, etc.)

Single Page Visit / Entries


If you want something at the site level, then they can use single page visits.

Single Access / Visits


You should use the metric that suits the needs based on the requirement.

Solution 2:

Other solution to track banner ads is to populate the value of banner in local variable of javascript like banner1:banner2:banner3 and pass on that value to analytics variable like prop on page load. This can give insight that how many banner has been loaded at the time of page load.

Configure Charles for Chrome

Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information)

You can download the Charles

After installing following are the steps to configure it

1.Register Charles

2.Goto Help->SSL Proxying->Install Charles Root Certificate



3.Select Local Machine and click on Next

4.Browser the certificate and select “Trusted Root Certification Authorities”

5.Click on Tools->Whitelist

6.Click on Proxy->SSL proxy settings



After performing the above settings Charles will work fine in Chrome browser, for some reason it was not working on firefox at my end.

Follow the steps to make it work:

Windows / Internet Explorer
First quit Charles. Then go to the Internet Options in your Control Panel. Go to the Connections tab. Click on the LAN Settings. You’ll see a Proxy panel. Uncheck the Use a Proxy checkbox. Click OK until you’ve closed the Internet Options.

Mac OS X
Go to your System Preferences. Open the Network preferences. Choose the appropriate Network Port (you may need to reconfigure more than one if you have more than one) and click Configure. Go to the Proxies tab. Look in the list of proxy servers, you will see that Web Proxy and Secure Web Proxy are active. Uncheck those or reconfigure them as required for your network. Click Apply Now and then close the Network preferences.

Firefox
First quit Charles. Then go to the Firefox Preferences window, General tab, click Connection Settings. Then choose “Direct Connection to the Internet” or enter whatever proxy settings are required for your network. Click OK and then close the Preferences window.

Dynamically Populate Value In dataLayer

While checking about dataLayer I came across: https://www.optimizesmart.com/google-tag-manager-data-layer-explained-like-never/

Example of dataLayer

On any web page test yourself by pasting the code

1.Paste the following code

<script>

  var dataLayer = {

‘pageName’: document.title,

‘pageURL’: document.URL

                                };

</script>

You can check these in console via

  • dataLayer.PageName
  • datLayer.pageURL

2.If you paste the following:

<script>

dataLayer = [{

‘pageCategory’: ‘Statistics’,

‘visitorType’: ‘high-value’

}];

</script>

You can check these in console via

  • dataLayer[0].pageCategory
  • dataLayer[0].visitorType

3.If you paste the following :

<script>

dataLayer = [{

‘pageCategory’: ‘Statistics’,

‘visitorType’: ‘high-value’

},

{‘nameA’:’salena’,

‘nameB’:’gomes’

}];

</script>

You can check these in console via

  • dataLayer[0].pageCategory
  • dataLayer[0].visitorType
  • dataLayer[1].nameA
  • dataLayer[1].nameB

4.

5.

digitalData.page = {};

digitalData.page.pageInfo = {};

digitalData.page.pageInfo.pageName = “Electronics>Computers>MacbookPro:ProductDetails”;

Please let me know if you have any question by your comment in the comment section.

How To Clear JAVA cache Of Computer

To clear your Java cache in Windows:

  1. Click Start > Control Panel.
  2. Locate and double click the Java icon in the Control Panel.
  3. Click Settings under Temporary Internet Files.
  4. Click Delete Files.
  5. Select all boxes and click OK on Delete Temporary Files window.
  6. Click OK on Temporary Files Settings window.
  7. Click OK to close the Java Control Panel.

To clear your Java cache in Mac OS X:

  1. Double click your Mac hard drive.
  2. Double click Applications.
  3. Double click Utilities.
  4. Double click Java Preferences.
  5. Click the Network tab.
  6. Click the Delete Files… button.
  7. You are prompted to delete your temporary files for Java. Make sure all boxes are selected with check marks. Click OK.
  8. Close the Java Preferences window.

How to track the amount of time between two different Adobe analytics events

In order to track the amount of time between two different events you can use the getTimeBetweenEvents plugin. It allows you to track the amount of time between two different Adobe analytics events.

I believe this plugin is not free , to get this you need to get in touch to Adobe Consulting.

In case you are not willing to work with Adobe Consulting then you can develop your own custom solution.

You can set a cookie when the first event is fired, in that cookie set the time stamp as t1 and when the second event fire set the timestamp as t2. Calculate the time difference between t1 and t2 and populate the value analytics variable.