Code Monkey home page Code Monkey logo

advocate-linkers's Introduction

advocate-linkers

Browser Extension

Get the WT'ify browser extension from the Chrome Web Store.

Edge

The extension is available through the link above also for Edge. You must allow extensions from other stores first in the extension manager.

InPrivate / Incognito

After installing WT'ify, go to the extension details and allow in InPrivate (Edge) / incognito (Chrome).

Usage

When on a page you want to link to, instead of copying the URL from the address bar, click on the WT icon.

image

The URL is taken from the address bar. You can change it here. Enter your details and Advocacy DevOps Item (ADO) ID.

New Feature: If you want to keep the locale code in the URL switch on ‘Keep Locale’.

The settings are kept in the browser’s storage so that you don’t need to re-enter the details for every link!

Web Application

Build Status

aka.ms/cdalinker - Simple VueJS application to add /?WT.mc_id=tactic-category-alias path to Microsoft based links. This is used by the Cloud Advocates to help track Microsoft-based traffic.

CLI tools

aka.ms/cxatrack - Convenient CLI to quickly update CxA tracked links. Supports batch mode with auto search & replace, frontmatter and clipboard watch.

  • Install: npm install -g cxa-track
  • Usage: cxa --help

advocate-linkers's People

Contributors

azureadvocatebit avatar burkeholland avatar johnpapa avatar maximrouiller avatar shmool avatar sinedied avatar spboyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

advocate-linkers's Issues

Tracking for NuGet packages

This might be a bigger issue than just this repo, but I figured I'd ask anyway.
Similar to how we have tracking on the VS Code extensions marketplace, can we support tracking stats for packages on NuGet.org?

can't get the link on the clipboard

Using OSX Monterey (although previous versions had the same behavior) and Edge Version 95.0.1020.53 (Official build) (arm64)
Version of WT linker: 1d683ab

The only way I can get it to work is by manually pasting the link into the URL input area even though it is populated. This is how the input area looks:
Screen Shot 2021-11-29 at 4 22 56 PM

After clicking "Track", the clipboard is unaffected. If I click on "Shorten" the clipboard works. If I copy the URL and paste it into the URL area it works too.

Let me know if you need any other info to debug/fix this problem.

Add pipelines in for /web

# Docker image
# Build a Docker image to deploy, run, or push to a container registry.
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
- master
- greenkeeper/* 

pool:
  vmImage: 'Ubuntu-16.04'

variables:
  imageName: 'social-linker:$(build.buildId)'
  dockerId: 'shayne'
  latest: 'social-linker:latest'

steps:

- task: Bash@3
  inputs:
    targetType: 'inline'
    script: 'docker build -f Dockerfile -t $(imageName) .'

- task: Bash@3 
  condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
  inputs:
    targetType: 'inline'
    script: |
      docker build -t $(dockerId).azurecr.io/$(imageName) .
      docker login -u $(dockerId) -p $(dockerPassword) $(dockerId).azurecr.io
      docker push $(dockerId).azurecr.io/$(imageName)
  displayName: 'pushing image to azurecr'

- task: AzureWebAppContainer@1
  condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
  inputs:
    azureSubscription: 'Azure-shboyer'
    appName: 'social-linker'
    imageName: '$(dockerId).azurecr.io/$(imageName)'

Implement instrumentation

We need to be able to track every time a new link is created.

We need to track alias, tactic, category, and base url as part of the customEvents tracking.

If more tracking is to be done, we'll need to open more issues and have a definitive plan as to what is being tracked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.