Were there no instructions? Can you link to the product you bought? What type of switch are you looking to replace ( ie - how many things are switched from this point, are there any other switching locations)?
Sorry - more questions than answers but more info is needed.