Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vendors:cisco:uc:ece:gaexample [2019/04/12 15:03] – created gerardorourkevendors:cisco:uc:ece:gaexample [2019/04/18 13:58] (current) – gerardorourke
Line 11: Line 11:
  
     <!--Manually set chatStatus for testing purposes (and disable chatStatus.php lookup)-->     <!--Manually set chatStatus for testing purposes (and disable chatStatus.php lookup)-->
-    <!--+ <!--
  <script>  <script>
  var chatStatus = 'open';  var chatStatus = 'open';
Line 18: Line 18:
  </script>  </script>
  -->  -->
- 
     <!-- Custom PHP Javascript using Cisco ECE & CCE APIs to check  opening hours - which returns variable 'chatStatus'     <!-- Custom PHP Javascript using Cisco ECE & CCE APIs to check  opening hours - which returns variable 'chatStatus'
  Make sure to pass in a valid BusinessHour and Chat EntryPoint ID  Make sure to pass in a valid BusinessHour and Chat EntryPoint ID
Line 27: Line 26:
     var chatTimer = '10000';     var chatTimer = '10000';
  -->  -->
 +
  
     <script type="text/javascript" src="http://nas2.home.purplepi.ie/chat/chatStatus.php?chatEntryId=1001&businessHoursId=5001"></script>     <script type="text/javascript" src="http://nas2.home.purplepi.ie/chat/chatStatus.php?chatEntryId=1001&businessHoursId=5001"></script>
Line 65: Line 65:
                         //alert('ChatCategory: ' + productObj.category + ', ChatVariant: ' + productObj.variant);                         //alert('ChatCategory: ' + productObj.category + ', ChatVariant: ' + productObj.variant);
                     }                     }
-                } 
-            }); 
-        } 
-    </script> 
- 
-    <script> 
-        ga_chat_backup = function() { 
-            dataLayer.push({ 
-                'event': 'productClick', 
-                'ecommerce': { 
-                    'click': { 
-                        'actionField': { 
-                            'list': 'Search Results' 
-                        }, 
-                        'products': [{ 
-                            'name': 'SalesChat', 
-                            'id': '5001', 
-                            'brand': 'Cisco', 
-                            'category': 'Chat', 
-                            'variant': 'standard', 
-                        }] 
-                    } 
-                }, 
-                'eventCallback': function() { 
-                    alert('ALL tags which fire on {{event}} equals fireTags have now fired'); 
-                    //document.location = 'http://purplepi.ie' 
-                    //egainChat.openHelp(); 
                 }                 }
             });             });
Line 274: Line 247:
  <!--Chat Options to display to end user - open / closed / busy -->  <!--Chat Options to display to end user - open / closed / busy -->
  <!--Chat Open-->  <!--Chat Open-->
-    <div id="mychatOn " align="center " style="display: none "> +    <div id="mychatOn" align="center" style="display: none "> 
-        <!--<button type="button " class="btn btn-primary " onclick="egainChat.openHelp(); ">Chat Now!</button>-->+        <!--<button type="button" class="btn btn-primary" onclick="egainChat.openHelp(); ">Chat Now!</button>-->
  <div>  <div>
- <button type="button " class="btn btn-primary " onclick="disableProactiveChat();ga_chat({category: 'Chat', variant: 'Standard'}) ">Chat Now!</button>+ <button type="button" class="btn btn-primary" onclick="disableProactiveChat();ga_chat({category: 'Chat', variant: 'Standard'}) ">Chat Now!</button>
  </div>  </div>
     </div>     </div>
  <!--Chat Closed / Off -->  <!--Chat Closed / Off -->
-    <div id="mychatOff " align="center " style="display: none ">+    <div id="mychatOff" align="center" style="display: none ">
         <h2>We are closed.</h2>         <h2>We are closed.</h2>
     </div>     </div>
  <!--Chat Busy-->  <!--Chat Busy-->
-    <div id="mychatBusy " align="center " style="display: none ">+    <div id="mychatBusy" align="center" style="display: none ">
         <h2>Sorry, we are busy.</h2>         <h2>Sorry, we are busy.</h2>
  <h3>Busy Reason: <script type="text/javascript ">document.write(chatBusyReason)</script></h3>  <h3>Busy Reason: <script type="text/javascript ">document.write(chatBusyReason)</script></h3>
Line 331: Line 304:
 </html> </html>
 </file> </file>
 +
 +{{:vendors:cisco:uc:ece:exampleoutput.png?direct&400|}}
  • vendors/cisco/uc/ece/gaexample.1555077794.txt.gz
  • Last modified: 2019/04/12 15:03
  • by gerardorourke